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
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.
Method Details [hide private]

__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