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

Class LiveGatherOutputHandler

source code


Live line-gathered output event handler class (-bL).

Instance Methods [hide private]
 
__init__(self, display, nodes)
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_hup(self, worker)
Called to indicate that a worker command for a specific node (or key) has just finished.
source code
 
_live_line(self, worker) 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 GatherOutputHandler: ev_error

Inherited from GatherOutputHandler (private): _close_common

Inherited from OutputHandler: ev_start, ev_written, runtimer_init, update_prompt

Inherited from Event.EventHandler: ev_msg, ev_pickup, ev_timeout, 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, nodes)
(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_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_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)