Package Products :: Package Zuul :: Package routers :: Module application :: Class ApplicationRouter
[hide private]
[frames] | no frames]

Class ApplicationRouter

source code

ZenUtils.Ext.DirectRouter --+    
                            |    
                   TreeRouter --+
                                |
                               ApplicationRouter

Instance Methods [hide private]
 
_getFacade(self)
Abstract method for child classes to use to get their facade
source code
 
_monitorFacade(self) source code
[dictionary]
asyncGetTree(self, id)
Returns the tree structure of the application and collector hierarchy.
source code
 
_getParentTreeKeys(self, trees) source code
 
_getOneTree(self, id) source code
 
_getMonitorTree(self, id) source code
[dictionary]
getTree(self, id)
Returns the tree structure of the application and collector hierarchy.
source code
DirectResponse
getForm(self, uid)
Given an object identifier, this returns all of the editable fields on that object as well as their ExtJs xtype that one would use on a client side form.
source code
DirectResposne
start(self, uids)
Will issue the command to start the selected ids
source code
DirectResposne
stop(self, uids)
Will issue the command to stop the selected ids
source code
DirectResposne
restart(self, uids)
Will issue the command to restart the selected ids
source code
DirectResposne
setAutoStart(self, uids, enabled)
Enables or disables autostart on all applications passed into uids.
source code
DirectResponse
getInfo(self, id)
Returns the serialized info object for the given id
source code
DirectResponse
getAllResourcePools(self, query=None)
Returns a list of resource pool identifiers.
source code
 
getApplicationConfigFiles(self, id)
Returns all the configuration files for an application
source code
 
updateConfigFiles(self, id, configFiles)
Updates the configuration files for an application specified by id.
source code

Inherited from TreeRouter: addNode, deleteNode, gunzip_b64, gzip_b64, moveOrganizer, objectExists

Inherited from TreeRouter (private): _canDeleteUid

Method Details [hide private]

_getFacade(self)

source code 

Abstract method for child classes to use to get their facade

Overrides: TreeRouter._getFacade
(inherited documentation)

asyncGetTree(self, id)

source code 

Returns the tree structure of the application and collector hierarchy.

Parameters:
  • id (string) - Id of the root node of the tree to be returned
Returns: [dictionary]
Object representing the tree
Overrides: TreeRouter.asyncGetTree

getTree(self, id)

source code 

Returns the tree structure of the application and collector hierarchy.

Parameters:
  • id (string) - Id of the root node of the tree to be returned
Returns: [dictionary]
Object representing the tree

getForm(self, uid)

source code 

Given an object identifier, this returns all of the editable fields on that object as well as their ExtJs xtype that one would use on a client side form.

Parameters:
  • uid (string) - Unique identifier of an object
Returns: DirectResponse
Properties
  • form: (dictionary) form fields for the object

start(self, uids)

source code 

Will issue the command to start the selected ids

Parameters:
  • uids (Array[Strings]) - List of valid daemon ids that will need to started
Returns: DirectResposne
DirectReponse of success if no errors are encountered

stop(self, uids)

source code 

Will issue the command to stop the selected ids

Parameters:
  • uids (Array[Strings]) - List of valid daemon ids that will need to stopped
Returns: DirectResposne
DirectReponse of success if no errors are encountered

restart(self, uids)

source code 

Will issue the command to restart the selected ids

Parameters:
  • uids (Array[Strings]) - List of valid daemon ids that will need to restarted
Returns: DirectResposne
DirectReponse of success if no errors are encountered

setAutoStart(self, uids, enabled)

source code 

Enables or disables autostart on all applications passed into uids. If it is already in that state it is a noop.

Parameters:
  • uids (Array[Strings]) - List of valid daemon ids that will need to enabled
  • uids (Array[Strings]) - true for enabled or false for disabled
  • enabled (boolean)
Returns: DirectResposne
DirectReponse of success if no errors are encountered

getInfo(self, id)

source code 

Returns the serialized info object for the given id

Parameters:
  • id - Valid id of a application
Returns: DirectResponse
DirectResponse with data of the application

getAllResourcePools(self, query=None)

source code 

Returns a list of resource pool identifiers.

Returns: DirectResponse
Properties:
  • data: ([String]) List of resource pool identifiers

updateConfigFiles(self, id, configFiles)

source code 

        Updates the configuration files for an application specified by id.
        The configFiles parameters is an array of dictionaries of the form:
        {
            filename: "blah",
            content: "line 1
line 2
..."
        }
        The filename parameter serves as the "id" of each configFile
        passed in.