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.

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

Inherited from SimplePlugin: subscribe, unsubscribe

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

Class Variables [hide private]
  callback = None
The function to call at intervals.
  frequency = 60
The time in seconds between callback runs.
  thread = None
A :class:`BackgroundTask<cherrypy.process.plugins.BackgroundTask>` thread.

Inherited from SimplePlugin: bus

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)