Package ganeti :: Package server :: Module rapi :: Class FileEventHandler
[hide private]
[frames] | no frames]

Class FileEventHandler

source code


Instance Methods [hide private]
 
__init__(self, wm, path, cb)
Initializes this class.
source code
 
process_default(self, event)
Called upon inotify event.
source code

Inherited from asyncnotifier.FileEventHandlerBase: AddWatch, RemoveWatch

Inherited from pyinotify.ProcessEvent: __call__, my_init, nested_pevent, process_IN_Q_OVERFLOW

Inherited from pyinotify._ProcessEvent: __repr__

Class Variables [hide private]

Inherited from pyinotify.ProcessEvent: pevent

Instance Variables [hide private]

Inherited from asyncnotifier.FileEventHandlerBase: watch_manager

Method Details [hide private]

__init__(self, wm, path, cb)
(Constructor)

source code 

Initializes this class.

Parameters:
  • wm - Inotify watch manager
  • path (string) - File path
  • cb (callable) - Function called on file change
Overrides: pyinotify.ProcessEvent.__init__

process_default(self, event)

source code 

Called upon inotify event.

Parameters:
  • event - Event to be processed. Can be of any type of events but IN_Q_OVERFLOW events (see method process_IN_Q_OVERFLOW).
Overrides: pyinotify.ProcessEvent.process_default