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

Class _ShutdownCheck

source code

Logic for Mainloop shutdown.

Instance Methods [hide private]
 
__init__(self, fn)
Initializes this class.
source code
bool
CanShutdown(self)
Checks whether mainloop can be stopped.
source code
Method Details [hide private]

__init__(self, fn)
(Constructor)

source code 

Initializes this class.

Parameters:
  • fn (callable) - Function returning None if mainloop can be stopped or a duration in seconds after which the function should be called again

See Also: Mainloop.Run