Interface for ClusterShell engine. Subclasses have to implement a
runloop listening for client events.
|
__init__(self,
info)
Initialize base class. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
clear(self,
did_timeout=False,
clear_ports=False)
Remove all clients. |
source code
|
|
|
|
|
|
|
|
|
modify(self,
client,
setmask,
clearmask)
Modify the next loop interest events bitset for a client. |
source code
|
|
|
_register_specific(self,
fd,
event)
Engine-specific register fd for event method. |
source code
|
|
|
_unregister_specific(self,
fd,
ev_is_set)
Engine-specific unregister fd method. |
source code
|
|
|
_modify_specific(self,
fd,
event,
setvalue)
Engine-specific modify fd for event method. |
source code
|
|
|
set_events(self,
client,
new_events)
Set the active interest events bitset for a client. |
source code
|
|
|
set_reading(self,
client)
Set client reading state. |
source code
|
|
|
set_reading_error(self,
client)
Set client reading error state. |
source code
|
|
|
set_writing(self,
client)
Set client writing state. |
source code
|
|
|
|
|
remove_timer(self,
timer)
Remove engine timer. |
source code
|
|
|
fire_timers(self)
Fire expired timers for processing. |
source code
|
|
|
start_ports(self)
Start and register all port clients. |
source code
|
|
|
start_all(self)
Start and register all other possible clients, in respect of task
fanout. |
source code
|
|
|
run(self,
timeout)
Run engine in calling thread. |
source code
|
|
|
|
|
|
|
|
|
exited(self)
Returns True if the engine has exited the runloop once. |
source code
|
|
|
|