Package sparked :: Module monitors :: Class MonitorContainer
[hide private]
[frames] | no frames]

Class MonitorContainer

source code

 twisted.application.service.Service --+    
                                       |    
twisted.application.service.MultiService --+
                                           |
                                          MonitorContainer

A container for monitoring services.

Instance Methods [hide private]
 
__init__(self) source code
 
startService(self) source code
 
addMonitor(self, monitor)
Add a monitor to the container, and notify that the monitor has changed.
source code
 
removeMonitor(self, monitor)
Remove a monitor from the container
source code
 
update(self)
Notify the container that monitor state has been changed or the monitors have been modified.
source code
 
ok(self) source code

Inherited from twisted.application.service.MultiService: __iter__, addService, getServiceNamed, privilegedStartService, removeService, stopService

Inherited from twisted.application.service.Service: __getstate__, __providedBy__, disownServiceParent, setName, setServiceParent

Class Variables [hide private]
  verbose = False

Inherited from twisted.application.service.MultiService: __implemented__, __provides__

Inherited from twisted.application.service.Service: name, parent, running

Instance Variables [hide private]
  monitors = None
A list of Monitor objects.
  events = None
An events.EventDispatcher which triggers an "updated" event when one of the monitors state changes.
Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: twisted.application.service.MultiService.__init__

startService(self)

source code 
Overrides: twisted.application.service.Service.startService