| Trees | Indices | Help |
|
|---|
|
|
ClusterShell pdsh-based worker Class.
Remote Shell (pdsh) usage example:
worker = WorkerPdsh(nodeset, handler=MyEventHandler(),
timeout=30, command="/bin/hostname")
Remote Copy (pdcp) usage example:
worker = WorkerPdsh(nodeset, handler=MyEventHandler(),
timeout=30, source="/etc/my.conf",
dest="/etc/my.conf")
...
task.schedule(worker) # schedule worker for execution
...
task.resume() # run
Known Limitations:
* write() is not supported by WorkerPdsh
* return codes == 0 are not garanteed when a timeout is used (rc > 0
are fine)
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Initialize Pdsh worker instance.
|
Return a list of underlying engine clients.
|
Start worker, initialize buffers, prepare command.
|
Read data from process.
|
Read error from process.
|
Write data to process. Not supported with Pdsh worker. |
Close worker. Called by engine after worker has been unregistered. This method should handle all termination types (normal, forced or on timeout).
|
Engine is telling us a read is available.
|
Engine is telling us an error read is available.
|
Return code received from a node, update last* stuffs.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Mar 9 10:46:35 2010 | http://epydoc.sourceforge.net |