zephir.monitor.agentmanager.zephirservice.UpdaterService

Package zephir :: Package monitor :: Package agentmanager :: Module zephirservice :: Class UpdaterService |
[frames] | no frames]

# Class UpdaterService

source code

     twisted.application.service.Service --+
                                           |
    twisted.application.service.MultiService --+
                                               |
           twisted.web.resource.Resource --+   |
                                           |   |
                   twisted.web.xmlrpc.XMLRPC --+
                                               |
                                              UpdaterService

Schedules measures, data serialisation and upload.

Nested Classes
Inherited from `twisted.web.resource.Resource`: `entityType`

Instance Methods
__init__(self, config, parent, root_resource) config should be complete | source code
startService(self) initialize zephir services | source code
stopService(self) stops zephir services | source code
load_agents(self) Charge tous les agents du répertoire de configurations. | source code
schedule(self, agent_name) Planifie les mesures périodiques d'un agent. | source code
wakeup_for_measure(self, agent_name) Callback pour les mesures planifiées. | source code
schedule_all(self) Planifie tous les agents chargés. | source code
timer_for_agent_named(self, agent_name) | source code
setup_uucp(self) | source code
update_static_data(self) | source code
wakeup_for_upload(self, recall=True) | source code
xmlrpc_list_agents(self) Returns: Liste des agents chargés | source code
xmlrpc_agents_menu(self) Returns: Liste des agents chargés et structure d'affichage | source code
xmlrpc_status_for_agents(self, agent_name_list=`[``]`) Returns: Les statuts des agents listés dans un dictionnaire `{nom:status}`. | source code
xmlrpc_reset_max_status_for_agents(self, agent_name_list=`[``]`) | source code
xmlrpc_archive_for_upload(self) | source code
Inherited from `twisted.application.service.MultiService`: `__iter__`, `addService`, `getServiceNamed`, `privilegedStartService`, `removeService` Inherited from `twisted.application.service.Service`: `__getstate__`, `__providedBy__`, `disownServiceParent`, `setName`, `setServiceParent` Inherited from `twisted.web.xmlrpc.XMLRPC`: `getSubHandler`, `getSubHandlerPrefixes`, `putSubHandler`, `render_POST` Inherited from `twisted.web.resource.Resource`: `delEntity`, `getChild`, `getChildForRequest`, `getChildWithDefault`, `getDynamicEntity`, `getStaticEntity`, `listDynamicEntities`, `listDynamicNames`, `listEntities`, `listNames`, `listStaticEntities`, `listStaticNames`, `putChild`, `reallyPutEntity`, `render`, `render_HEAD`

Class Variables
Inherited from `twisted.application.service.MultiService`: `__implemented__`, `__provides__` Inherited from `twisted.application.service.Service`: `name`, `parent`, `running` Inherited from `twisted.web.xmlrpc.XMLRPC`: `FAILURE`, `NOT_FOUND`, `allowedMethods`, `isLeaf`, `separator` Inherited from `twisted.web.resource.Resource`: `server`

Method Details

### __init__(self, config, parent, root_resource) (Constructor) | source code
config should be complete Overrides: twisted.web.resource.Resource.__init__

### startService(self) | source code
initialize zephir services Overrides: twisted.application.service.Service.startService

### stopService(self) | source code
stops zephir services Overrides: twisted.application.service.Service.stopService

### schedule_all(self) | source code
Planifie tous les agents chargés. Démarre le cycle de mesures périodiques de chaque agent chargé. La première mesure est prise immédiatement.

### xmlrpc_list_agents(self) | source code
Returns: Liste des agents chargés

### xmlrpc_agents_menu(self) | source code
Returns: Liste des agents chargés et structure d'affichage

### xmlrpc_status_for_agents(self, agent_name_list=`[``]`) | source code
Returns: Les statuts des agents listés dans un dictionnaire `{nom:status}`. Le status est lui-même un dictionnaire avec pour clés `'level'` et `'message'`. Seuls les noms d'agents effectivement chargés apparaîtront parmi les clés du dictionnaire.