Package ganeti :: Package server :: Module masterd :: Class _MasterShutdownCheck
[hide private]
[frames] | no frames]

Class _MasterShutdownCheck

source code


Logic for master daemon shutdown.

Instance Methods [hide private]
 
__init__(self)
Initializes this class.
source code
None or number
__call__(self, jq_prepare_result)
Determines if master daemon is ready for shutdown.
source code

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

Class Variables [hide private]
  _CHECK_INTERVAL = 5.0
How long to wait between checks
  _SHUTDOWN_LINGER = 5.0
How long to wait after all jobs are done (e.g.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initializes this class.

Overrides: object.__init__

__call__(self, jq_prepare_result)
(Call operator)

source code 

Determines if master daemon is ready for shutdown.

Parameters:
Returns: None or number
None if master daemon is ready, timeout if the check must be repeated

Class Variable Details [hide private]

_SHUTDOWN_LINGER

How long to wait after all jobs are done (e.g. to give clients time to retrieve the job status)

Value:
5.0