Admin node propagation logic. Instances are able to handle incoming
messages from a directly connected gateway, process them and reply.
In order to take decisions, the instance acts as a finite states
machine, whose current state evolves according to received data.
|
|
__init__(self,
task,
gateway)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
send_queued(self,
ctl)
helper used to send a message, using msg queue if needed |
source code
|
|
|
|
send_dequeue(self)
helper used to send one queued message (if any) |
source code
|
|
|
|
|
|
|
|
|
|
shell(self,
nodes,
command,
worker,
timeout,
stderr,
gw_invoke_cmd,
remote)
command execution through channel |
source code
|
|
|
|
write(self,
nodes,
buf,
worker)
write buffer through channel to nodes on standard input |
source code
|
|
|
|
set_write_eof(self,
nodes,
worker)
send EOF through channel to specified nodes |
source code
|
|
|
|
recv_cfg(self,
msg)
handle incoming messages for state 'propagate configuration' |
source code
|
|
|
|
recv_ctl(self,
msg)
handle incoming messages for state 'control' |
source code
|
|
|
|
|
|
|
|
|
Inherited from Communication.Channel:
ev_read,
ev_start,
send
Inherited from Event.EventHandler:
ev_error,
ev_msg,
ev_pickup,
ev_timeout,
ev_timer,
ev_written
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|