Package ClusterShell :: Module Event :: Class EventHandler
[hide private]
[frames] | no frames]

Class EventHandler

source code


Base class EventHandler.

Instance Methods [hide private]
 
_invoke(self, ev_type, *args)
Invoke a specific event handler.
source code
 
ev_start(self, worker)
Called to indicate that a worker has just started.
source code
 
ev_read(self, worker)
Called to indicate that a worker has data to read.
source code
 
ev_error(self, worker)
Called to indicate that a worker has error to read (on stderr).
source code
 
ev_written(self, worker)
Called to indicate that writing has been done.
source code
 
ev_hup(self, worker)
Called to indicate that a worker's connection has been closed.
source code
 
ev_timeout(self, worker)
Called to indicate that a worker has timed out (worker timeout only).
source code
 
ev_close(self, worker)
Called to indicate that a worker has just finished (it may already have failed on timeout).
source code
 
ev_msg(self, port, msg)
Handle port message.
source code
 
ev_timer(self, timer)
Handle firing timer.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

ev_msg(self, port, msg)

source code 

Handle port message.

Parameters:
  • port - The port object on which a message is available.

ev_timer(self, timer)

source code 

Handle firing timer.

Parameters:
  • timer - The timer that is firing.