Package ganeti :: Module asyncnotifier :: Class AsyncNotifier
[hide private]
[frames] | no frames]

Class AsyncNotifier

source code


An asyncore dispatcher for inotify events.

Instance Methods [hide private]
 
__init__(self, watch_manager, default_proc_fun=None, map=None)
Initializes this class.
source code
 
handle_read(self) source code

Inherited from asyncore.file_dispatcher: set_file

Inherited from asyncore.dispatcher: __getattr__, __repr__, __str__, accept, add_channel, bind, close, connect, create_socket, del_channel, handle_accept, handle_close, handle_connect, handle_connect_event, handle_error, handle_expt, handle_expt_event, handle_read_event, handle_write, handle_write_event, listen, log, log_info, readable, recv, send, set_reuse_addr, set_socket, writable

Class Variables [hide private]

Inherited from asyncore.dispatcher: accepting, addr, closing, connected, connecting, debug, ignore_log_types

Method Details [hide private]

__init__(self, watch_manager, default_proc_fun=None, map=None)
(Constructor)

source code 

Initializes this class.

This is a a special asyncore file_dispatcher that actually wraps a pyinotify Notifier, making it asyncronous.

Overrides: asyncore.dispatcher.__init__

handle_read(self)

source code 
Overrides: asyncore.dispatcher.handle_read