SAFplus Runtime Director API
3.0.5
|
Represents a single archive file that is a particular application version. More...
Public Member Functions | |
def | __init__ |
Constructor. More... | |
def | Delete |
Remove this application file, and all running instances. More... | |
def | Nodes |
Show the nodes running instances of this application. More... | |
def | ParseAppCfg |
Private: Parse and return the application configuration file. More... | |
def | Open |
Detar an application tar file and verify its contents. More... | |
def | NormalizeCfg |
Internal function: Fills in defaults if some configuration is not included. More... | |
Public Attributes | |
name | |
Filename and path of the bundle file. More... | |
appName | |
Name of the application (as specified in appcfg.xml) More... | |
version | |
Version of the application (as specified in appcfg.xml) More... | |
archive | |
Filename and path of the bundle file (same as the name member variable) More... | |
dir | |
Location of the exploded bundle. More... | |
uploadDate | |
When was this bundle added? More... | |
cfg | |
The default configuration as specified in appcfg.xml. More... | |
sg | |
List of Service Groups that are using this software. More... | |
app | |
The bundle is a particular version of the app referenced here. More... | |
Represents a single archive file that is a particular application version.
def aspApp.AppFile.__init__ | ( | self, | |
file | |||
) |
Constructor.
file | The filename of the bundle that this object will represent |
def aspApp.AppFile.Delete | ( | self | ) |
Remove this application file, and all running instances.
def aspApp.AppFile.Nodes | ( | self | ) |
Show the nodes running instances of this application.
def aspApp.AppFile.NormalizeCfg | ( | self, | |
cfg = None |
|||
) |
Internal function: Fills in defaults if some configuration is not included.
Converts empty strings to None.
def aspApp.AppFile.Open | ( | self, | |
tgtdir = None |
|||
) |
Detar an application tar file and verify its contents.
Parameters: tgtdir: Where you want the archive opened (if not passed, I will make a temporary)
Exceptions: misc.Error: Raised when shell commands return error codes
Returns: (tgtdir, cfg) tgtdir: Where the archive was opened cfg: Application configuration
def aspApp.AppFile.ParseAppCfg | ( | self, | |
file | |||
) |
Private: Parse and return the application configuration file.
aspApp.AppFile.app |
The bundle is a particular version of the app referenced here.
aspApp.AppFile.appName |
Name of the application (as specified in appcfg.xml)
aspApp.AppFile.archive |
Filename and path of the bundle file (same as the name member variable)
aspApp.AppFile.cfg |
The default configuration as specified in appcfg.xml.
aspApp.AppFile.dir |
Location of the exploded bundle.
aspApp.AppFile.name |
Filename and path of the bundle file.
aspApp.AppFile.sg |
List of Service Groups that are using this software.
aspApp.AppFile.uploadDate |
When was this bundle added?
aspApp.AppFile.version |
Version of the application (as specified in appcfg.xml)