Package ClusterShell :: Package Worker :: Module Pdsh :: Class PdshClient
[hide private]
[frames] | no frames]

Class PdshClient

source code


EngineClient which run 'pdsh'

Instance Methods [hide private]
 
__init__(self, node, command, worker, stderr, timeout, autoclose=False, rank=None)
Create an EngineClient-type instance to locally run `command'.
source code
 
_build_cmd(self)
Build the shell command line to start the commmand.
source code
 
_close(self, abort, timeout)
Close client.
source code
 
_parse_line(self, line, sname)
Parse Pdsh line syntax.
source code
 
_flush_read(self, sname)
Called at close time to flush stream read buffer.
source code
 
_handle_read(self, sname)
Engine is telling us a read is available.
source code

Inherited from EngineClient.EngineClient: __repr__, abort

Inherited from Engine.Engine.EngineBaseTimer: invalidate, is_valid, set_nextfire

Inherited from Engine.Engine.EngineBaseTimer (private): _set_engine

Class Variables [hide private]
  MODE = 'pdsh'
Method Details [hide private]

__init__(self, node, command, worker, stderr, timeout, autoclose=False, rank=None)
(Constructor)

source code 

Create an EngineClient-type instance to locally run `command'.

:param node: will be used as key.

Overrides: Engine.Engine.EngineBaseTimer.__init__
(inherited documentation)

_build_cmd(self)

source code 

Build the shell command line to start the commmand. Return an array of command and arguments.

Overrides: Exec.ExecClient._build_cmd

_close(self, abort, timeout)

source code 

Close client. See EngineClient._close().

Overrides: EngineClient.EngineClient._close

_flush_read(self, sname)

source code 

Called at close time to flush stream read buffer.

Overrides: EngineClient.EngineClient._flush_read

_handle_read(self, sname)

source code 

Engine is telling us a read is available.

Overrides: EngineClient.EngineClient._handle_read