Read notifications, process events.
|
|
__init__(self,
watch_manager,
default_proc_fun=<ProcessEvent>,
read_freq=0,
treshold=0,
timeout=None)
Initialization. |
source code
|
|
|
|
|
|
bool
|
|
|
|
read_events(self)
Read events from device, build _RawEvents, and enqueue them. |
source code
|
|
|
|
process_events(self)
Routine for processing events from queue by calling their associated
proccessing function (instance of ProcessEvent). |
source code
|
|
|
|
__daemonize(self,
pid_file=None,
force_kill=False,
stdin='/dev/null',
stdout='/dev/null',
stderr='/dev/null')
pid_file: file to which pid will be written. |
source code
|
|
|
|
|
|
|
loop(self,
callback=None,
daemonize=False,
**args)
Events are read only once time every min(read_freq, timeout) seconds
at best and only if the size to read is >= treshold. |
source code
|
|
|
|
stop(self)
Close the inotify's instance (close its file descriptor). |
source code
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|