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

Class _JobFileChangesWaiter

source code


Instance Methods [hide private]
 
__init__(self, filename, _inotify_wm_cls=pyinotify.WatchManager)
Initializes this class.
source code
 
_OnInotify(self, notifier_enabled)
Callback for inotify.
source code
 
Wait(self, timeout)
Waits for the job file to change.
source code
 
Close(self)
Closes underlying notifier and its file descriptor.
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, _inotify_wm_cls=pyinotify.WatchManager)
(Constructor)

source code 

Initializes this class.

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

Wait(self, timeout)

source code 

Waits for the job file to change.

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