class documentation

class FileEventHandlerBase(pyinotify.ProcessEvent):

Known subclasses: ganeti.asyncnotifier.SingleFileEventHandler, ganeti.server.rapi.FileEventHandler

View In Hierarchy

Base class for file event handlers.

Method __init__ Initializes this class.
Method AddWatch Adds a file watch.
Method process_default Undocumented
Method RemoveWatch Removes a handle from the watcher.
Instance Variable watch_manager Inotify watch manager
def __init__(self, watch_manager):

Initializes this class.

Parameters
watch_manager:pyinotify.WatchManagerinotify watch manager
def AddWatch(self, filename, mask):

Adds a file watch.

Parameters
filenamePath to file
maskInotify event mask
Returns
Result
def process_default(self, event):

Undocumented

def RemoveWatch(self, handle):

Removes a handle from the watcher.

Parameters
handleInotify handle
Returns
Whether removal was successful
watch_manager =

Inotify watch manager