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

Type ThreadedNotifier

    object --+    
             |    
      Notifier --+
                 |
object --+       |
         |       |
  _Verbose --+   |
             |   |
        Thread --+
                 |
                ThreadedNotifier


This notifier inherits from threading.Thread instantiating a separate thread, and provide standart Notifier functionality. This is a threaded version of Notifier.
Method Summary
  __init__(self, watch_manager, default_proc_fun)
Initialization, initialize base classes.
  run(self)
Start the thread's task: Read and process events forever (i.e.
  stop(self)
Stop the notifier's thread.
    Inherited from Thread
  __repr__(self)
  getName(self)
  isAlive(self)
  isDaemon(self)
  join(self, timeout)
  setDaemon(self, daemonic)
  setName(self, name)
  start(self)
  _set_daemon(self)
    Inherited from _Verbose
  _note(self, format, *args)
    Inherited from Notifier
bool check_events(self, timeout)
Check for new events available to read, blocks up to timeout milliseconds.
  process_events(self)
Routine for processing events from queue by calling their associated proccessing function (instance of ProcessEvent).
  read_events(self)
Read events from device, build _RawEvents, and enqueue them.
    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)

Class Variable Summary
    Inherited from Thread
bool _Thread__initialized = False

Method Details

__init__(self, watch_manager, default_proc_fun=<pyinotify.ProcessEvent object at 0x4026d1ec>)
(Constructor)

Initialization, initialize base classes.
Parameters:
watch_manager - Watch Manager.
           (type=WatchManager instance)
default_proc_fun - Default processing method.
           (type=instance of ProcessEvent)
Overrides:
threading.Thread.__init__

run(self)

Start the thread's task: Read and process events forever (i.e. 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 notifier's thread. Stop notification.
Overrides:
pyinotify.Notifier.stop

Generated by Epydoc 2.1 on Sat Feb 17 02:40:18 2007 http://epydoc.sf.net