Package ClusterShell :: Package Engine :: Module Poll :: Class EnginePoll
[hide private]
[frames] | no frames]

Class EnginePoll

source code


Poll Engine

ClusterShell engine using the select.poll mechanism (Linux poll() syscall).

Instance Methods [hide private]
 
__init__(self, info)
Initialize Engine.
source code
 
_modify_specific(self, fd, event, setvalue)
Engine-specific modifications after a interesting event change for a file descriptor.
source code
 
set_reading(self, client)
Set client reading state.
source code
 
set_writing(self, client)
Set client writing state.
source code
 
runloop(self, timeout)
Pdsh engine run(): start clients and properly get replies
source code
 
exited(self)
Returns True if the engine has exited the runloop once.
source code

Inherited from Engine.Engine: abort, add, add_timer, clear, clients, fire_timers, join, modify, register, remove, remove_timer, run, set_events, start_all, unregister, unregister_writer

Inherited from Engine.Engine (private): _debug

Class Variables [hide private]

Inherited from Engine.Engine: E_ANY, E_READABLE, E_WRITABLE

Method Details [hide private]

__init__(self, info)
(Constructor)

source code 

Initialize Engine.

Overrides: Engine.Engine.__init__

_modify_specific(self, fd, event, setvalue)

source code 

Engine-specific modifications after a interesting event change for a file descriptor. Called automatically by Engine register/unregister and set_events(). For the poll() engine, it reg/unreg or modifies the event mask associated to a file descriptor.

runloop(self, timeout)

source code 

Pdsh engine run(): start clients and properly get replies

Overrides: Engine.Engine.runloop