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

Class OutputHandler

source code


Base class for clush output handlers.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
runtimer_init(self, task, ntotal=0)
Init timer for live command-completed progressmeter.
source code
 
_runtimer_clean(self)
Hide runtimer counter
source code
 
_runtimer_set_dirty(self)
Force redisplay of counter
source code
 
_runtimer_finalize(self, worker)
Finalize display of runtimer counter
source code
 
update_prompt(self, worker)
If needed, notify main thread to update its prompt by sending a SIGUSR1 signal.
source code
 
ev_start(self, worker)
Worker is starting.
source code
 
ev_written(self, worker, node, sname, size)
Bytes written on worker
source code

Inherited from Event.EventHandler: ev_close, ev_error, ev_hup, ev_msg, ev_pickup, ev_read, 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)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

update_prompt(self, worker)

source code 

If needed, notify main thread to update its prompt by sending a SIGUSR1 signal. We use task-specific user-defined variable to record current states (prefixed by USER_).

ev_start(self, worker)

source code 

Worker is starting.

Overrides: Event.EventHandler.ev_start

ev_written(self, worker, node, sname, size)

source code 

Bytes written on worker

Overrides: Event.EventHandler.ev_written