t.r.p.ProcessMonitor(service.Service) : class documentation

Part of twisted.runner.procmon View Source View In Hierarchy

No class docstring
Method __init__ Undocumented
Method __getstate__ Undocumented
Method addProcess Add a new process to launch, monitor, and restart when necessary.
Method removeProcess Undocumented
Method startService Start the service.
Method stopService Stop the service.
Method connectionLost Undocumented
Method startProcess Undocumented
Method stopProcess Undocumented
Method restartAll Undocumented
Method __repr__ Undocumented
Method _checkConsistency Undocumented
Method _forceStopProcess Undocumented

Inherited from Service:

Method setName Set the name of the service.
Method setServiceParent Set the parent of the service.
Method disownServiceParent Use this API to remove an IService from an IServiceCollection.
Method privilegedStartService Do preparation work for starting the service.
def __init__(self): (source)
Undocumented
def __getstate__(self): (source)
Undocumented
def _checkConsistency(self): (source)
Undocumented
def addProcess(self, name, args, uid=None, gid=None, env={}): (source)
Add a new process to launch, monitor, and restart when necessary.
ParametersnameA label for this process. This value must be unique across all processes added to this monitor.
argsThe argv sequence for the process to launch.
uidThe user ID to use to run the process. If None, the current UID is used. (type: int )
gidThe group ID to use to run the process. If None, the current GID is used.
uid (type: int )
envThe environment to give to the launched process. See IReactorProcess.spawnProcess's env parameter. (type: dict )
def removeProcess(self, name): (source)
Undocumented
def startService(self): (source)
Start the service.
def stopService(self): (source)
Stop the service.
Returnsa Deferred which is triggered when the service has finished shutting down. If shutting down is immediate, a value can be returned (usually, None). (type: Deferred )
def connectionLost(self, name): (source)
Undocumented
def startProcess(self, name): (source)
Undocumented
def _forceStopProcess(self, proc): (source)
Undocumented
def stopProcess(self, name): (source)
Undocumented
def restartAll(self): (source)
Undocumented
def __repr__(self): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:07:41.