Package cherrypy :: Package process :: Module plugins :: Class Monitor
[hide private]
[frames] | no frames]

Class Monitor

source code

  object --+    
           |    
SimplePlugin --+
               |
              Monitor
Known Subclasses:

WSPBus listener to periodically run a callback in its own thread.

bus: a Web Site Process Bus object. callback: the function to call at intervals. frequency: the time in seconds between callback runs.

Instance Methods [hide private]
 
__init__(self, bus, callback, frequency=60)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
start(self)
Start our callback in its own perpetual timer thread.
source code
 
stop(self)
Stop our callback's perpetual timer thread.
source code
 
graceful(self)
Stop the callback's perpetual timer thread and restart it.
source code

Inherited from SimplePlugin: subscribe, unsubscribe

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  frequency = 60
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, bus, callback, frequency=60)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)