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

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

Properties [hide private]

Inherited from object: __class__

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
Overrides: object.__init__

See Also: Mainloop.Run