Base class DistantWorker, which provides a useful set of
setters/getters to use with distant workers like ssh or pdsh.
|
|
|
|
|
|
|
|
_on_node_msgline(self,
node,
msg)
Message received from node, update last* stuffs. |
source code
|
|
|
|
_on_node_errline(self,
node,
msg)
Error message received from node, update last* stuffs. |
source code
|
|
|
|
_on_node_rc(self,
node,
rc)
Return code received from a node, update last* stuffs. |
source code
|
|
|
|
_on_node_timeout(self,
node)
Update on node timeout. |
source code
|
|
|
|
last_node(self)
Get last node, useful to get the node in an EventHandler callback
like ev_timeout(). |
source code
|
|
|
|
|
|
|
|
|
|
last_retcode(self)
Get last (node, rc), useful in an EventHandler.ev_hup() |
source code
|
|
|
|
node_buffer(self,
node)
Get specific node buffer. |
source code
|
|
|
|
node_error(self,
node)
Get specific node error buffer. |
source code
|
|
|
|
node_error_buffer(self,
node)
Get specific node error buffer. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
iter_errors(self,
match_keys=None)
Returns an iterator over available error buffers and associated
NodeSet. |
source code
|
|
|
|
iter_node_buffers(self,
match_keys=None)
Returns an iterator over each node and associated buffer. |
source code
|
|
|
|
iter_node_errors(self,
match_keys=None)
Returns an iterator over each node and associated error buffer. |
source code
|
|
|
|
|
|
|
iter_node_retcodes(self)
Returns an iterator over each node and associated return code. |
source code
|
|
|
|
|
|
|
|
|
Inherited from Worker:
did_timeout,
flush_buffers,
flush_errors
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|