Trees | Index | Help |
---|
Package flumotion :: Package service :: Module service :: Class Servicer |
|
Loggable
--+
|
Servicer
Method Summary | |
---|---|
| |
Clean up dead processes as given in the args. | |
Return a dictionary of manager names -> flow names | |
Return a list of worker names | |
List all service parts managed. | |
Start processes as given in the args. | |
Start the manager as configured in the manager directory for the given manager name, together with the given flows. | |
Start the given process and block. | |
Start the worker as configured in the worker directory for the given worker name. | |
Give status on processes as given in the args. | |
Stop processes as given in the args. | |
Stop the given manager if it is running. | |
Stop the process with the given pid. | |
Stop the given worker if it is running. | |
_parseManagersWorkers(self,
command,
args)
| |
Inherited from Loggable | |
Log a debug message. | |
Log an error. | |
Log an informational message. | |
Log a log message. | |
Overridable log function. | |
Overridable object name function. | |
Log a warning. | |
Log a warning about a Failure. |
Class Variable Summary | |
---|---|
str |
logCategory : Implementors can provide a category to log their messages under. |
Inherited from Loggable | |
Implements |
__implemented__ = <implementedBy flumotion.common.log.Lo...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Method Details |
---|
__init__(self,
configDir)
|
clean(self, args)Clean up dead processes as given in the args. |
getManagers(self)
|
getWorkers(self)
|
list(self)List all service parts managed. |
start(self, args)Start processes as given in the args. If nothing specified, start all managers and workers. If first argument is "manager", start given manager, or all if none specified. If first argument is "worker", start given worker, or all if none specified.
|
startManager(self, name, flowNames)Start the manager as configured in the manager directory for the given manager name, together with the given flows.
|
startProcess(self, command)Start the given process and block. Returns the exit status of the process, or -1 in case of another error. |
startWorker(self, name)Start the worker as configured in the worker directory for the given worker name.
|
status(self, args)Give status on processes as given in the args. |
stop(self, args)Stop processes as given in the args. If nothing specified, stop all managers and workers. If first argument is "manager", stop given manager, or all if none specified. If first argument is "worker", stop given worker, or all if none specified.
|
stopManager(self, name)Stop the given manager if it is running. |
stopProcess(self, pid)Stop the process with the given pid. Wait until the pid has disappeared. |
stopWorker(self, name)Stop the given worker if it is running. |
Class Variable Details |
---|
logCategoryImplementors can provide a category to log their messages under.
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Sep 13 13:38:36 2006 | http://epydoc.sf.net |