Package ganeti :: Module daemon :: Class AsyncoreScheduler
[hide private]
[frames] | no frames]

Class AsyncoreScheduler

source code


Event scheduler integrated with asyncore

Instance Methods [hide private]
 
__init__(self, timefunc)
Initializes this class.
source code
 
run(self, max_delay=None)
Run any pending events.
source code
 
_LimitedDelay(self, duration)
Custom delay function for sched.scheduler.
source code

Inherited from sched.scheduler: cancel, empty, enter, enterabs, queue

Method Details [hide private]

__init__(self, timefunc)
(Constructor)

source code 

Initializes this class.

Overrides: sched.scheduler.__init__

run(self, max_delay=None)

source code 

Run any pending events.

Parameters:
  • max_delay (None or number) - Maximum delay (useful if caller has timeouts running)
Overrides: sched.scheduler.run