Package ClusterShell :: Package CLI :: Module Clush :: Class DirectOutputHandler
[hide private]
[frames] | no frames]

Class DirectOutputHandler

source code


Direct output event handler class.

Instance Methods [hide private]
 
__init__(self, display)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
ev_read(self, worker)
Called to indicate that a worker has data to read from a specific node (or key).
source code
 
ev_error(self, worker)
Called to indicate that a worker has error to read on stderr from a specific node (or key).
source code
 
ev_hup(self, worker)
Called to indicate that a worker command for a specific node (or key) has just finished.
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

Inherited from OutputHandler: ev_start, ev_written, runtimer_init, update_prompt

Inherited from Event.EventHandler: ev_msg, ev_pickup, ev_timer

Inherited from Event.EventHandler (private): _ev_routing

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, display)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

ev_read(self, worker)

source code 

Called to indicate that a worker has data to read from a specific node (or key).

:param worker: :class:`.Worker` object

Available worker attributes:

* :attr:`.Worker.current_node` - node (or key) * :attr:`.Worker.current_msg` - read message

Overrides: Event.EventHandler.ev_read
(inherited documentation)

ev_error(self, worker)

source code 

Called to indicate that a worker has error to read on stderr from a specific node (or key).

:param worker: :class:`.Worker` object

Available worker attributes:

* :attr:`.Worker.current_node` - node (or key) * :attr:`.Worker.current_errmsg` - read error message

Overrides: Event.EventHandler.ev_error
(inherited documentation)

ev_hup(self, worker)

source code 

Called to indicate that a worker command for a specific node (or key) has just finished. Called for each node.

:param worker: :class:`.Worker` object

Available worker attributes:

* :attr:`.Worker.current_node` - node (or key) * :attr:`.Worker.current_rc` - command return code

Overrides: Event.EventHandler.ev_hup
(inherited documentation)

ev_timeout(self, worker)

source code 

Called to indicate that a worker has timed out (worker timeout only).

:param worker: :class:`.Worker` object

Overrides: Event.EventHandler.ev_timeout
(inherited documentation)

ev_close(self, worker)

source code 

Called to indicate that a worker has just finished (it may already have failed on timeout).

:param worker: :class:`.Worker` object

Overrides: Event.EventHandler.ev_close
(inherited documentation)