Module pyinotify :: Class ThreadedINotify
[show private | hide private]
[frames | no frames]

Type ThreadedINotify

    object --+    
             |    
 SimpleINotify --+
                 |
object --+       |
         |       |
  _Verbose --+   |
             |   |
        Thread --+
                 |
                ThreadedINotify


Threaded INotify class, inherits from threading.Thread to instantiate a separate thread and from SimpleINotify. This is a threaded version of SimpleINotify.
Method Summary
  __init__(self)
Initialization, initialize parents classes.
  run(self)
Start the thread's task: Read and process events forever (until the method stop() is called).
  stop(self)
Stop the thread, close the inotify's instance.
    Inherited from Thread
  __repr__(self)
  getName(self)
  isAlive(self)
  isDaemon(self)
  join(self, timeout)
  setDaemon(self, daemonic)
  setName(self, name)
  start(self)
    Inherited from SimpleINotify
dict of str: int add_watch(self, path, mask, proc_fun, rec)
Add watch(es) on given path(s) with the specified mask and optionnally with a processing function.
  close(self)
Close the inotify's instance (close its file descriptor).
  event_check(self, timeout)
Check for inotify events
string or None get_path(self, wd)
Returns the path associated to WD, if WD doesn't exist or is inactive None is returned.
int or None get_wd(self, path)
Returns the watch descriptor associated to path, if path couldn't be retrieved or is inactive None is returned.
  process_events(self)
Process events from queue by calling their associated proccessing function (or functor).
  read_events(self)
Read events from device and enqueue them.
dict of int: bool rm_watch(self, wd, rec)
Removes watch(es).
dict of int: bool update_watch(self, wd, mask, proc_fun, rec)
Update existing watch(es).
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self)
(Constructor)

Initialization, initialize parents classes.
Overrides:
threading.Thread.__init__

run(self)

Start the thread's task: Read and process events forever (until the method stop() is called). Don't call this method directly, instead call the start() method inherited from threading.Thread.
Overrides:
threading.Thread.run

stop(self)

Stop the thread, close the inotify's instance.

Generated by Epydoc 2.1 on Wed Mar 29 03:46:06 2006 http://epydoc.sf.net