Package ganeti :: Module jqueue :: Class _JobChangesWaiter
[hide private]
[frames] | no frames]

Class _JobChangesWaiter

source code


Instance Methods [hide private]
 
__init__(self, filename, _waiter_cls=_JobFileChangesWaiter)
Initializes this class.
source code
 
Wait(self, timeout)
Waits for a job to change.
source code
 
Close(self)
Closes underlying waiter.
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, filename, _waiter_cls=_JobFileChangesWaiter)
(Constructor)

source code 

Initializes this class.

Parameters:
  • filename (string) - Path to job file
Overrides: object.__init__

Wait(self, timeout)

source code 

Waits for a job to change.

Parameters:
  • timeout (float) - Timeout in seconds
Returns:
Whether there have been events