Package ganeti :: Package cmdlib :: Module test :: Class LUTestDelay
[hide private]
[frames] | no frames]

Class LUTestDelay

source code


Sleep for a specified amount of time.

This LU sleeps on the master and/or nodes for a specified amount of time.

Instance Methods [hide private]
 
ExpandNames(self)
Expand names and set required locks.
source code
 
_InterruptibleDelay(self)
Delays but provides the mechanisms necessary to interrupt the delay as needed.
source code
 
_UninterruptibleDelay(self)
Delays without allowing interruptions.
source code
bool
_TestDelay(self)
Do the actual sleep.
source code
 
Exec(self, feedback_fn)
Execute the test delay opcode, with the wanted repetitions.
source code

Inherited from base.NoHooksLU: BuildHooksEnv, BuildHooksNodes, PreparePostHookNodes

Inherited from base.LogicalUnit: AssertReleasedLocks, CheckArguments, CheckPrereq, DeclareLocks, HooksCallBack, PrepareRetry, WConfdClient, __init__, owned_locks, release_request

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

Class Variables [hide private]
  REQ_BGL = False

Inherited from base.NoHooksLU: HPATH, HTYPE

Instance Variables [hide private]

Inherited from base.LogicalUnit: dry_run_result

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

ExpandNames(self)

source code 

Expand names and set required locks.

This expands the node list, if any.

Overrides: base.LogicalUnit.ExpandNames

_TestDelay(self)

source code 

Do the actual sleep.

Returns: bool
Whether the delay was interrupted

Exec(self, feedback_fn)

source code 

Execute the test delay opcode, with the wanted repetitions.

Overrides: base.LogicalUnit.Exec