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

Class StreamClient

source code


StreamWorker's default EngineClient.

StreamClient is the EngineClient subclass used by default by StreamWorker. It handles some generic methods to pass data to the StreamWorker.

Instance Methods [hide private]
 
_start(self)
Called on EngineClient start.
source code
 
_read(self, sname, size=65536)
Read data from process.
source code
 
_close(self, abort, timeout)
Close client.
source code
 
_handle_read(self, sname)
Engine is telling us there is data available for reading.
source code
 
_flush_read(self, sname)
Called at close time to flush stream read buffer.
source code
 
write(self, buf, sname=None)
Write to writable stream(s).
source code
 
set_write_eof(self, sname=None)
Set EOF flag to writable stream(s).
source code

Inherited from EngineClient.EngineClient: __init__, __repr__, abort

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

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

Method Details [hide private]

_start(self)

source code 

Called on EngineClient start.

Overrides: EngineClient.EngineClient._start

_read(self, sname, size=65536)

source code 

Read data from process.

Overrides: EngineClient.EngineClient._read

_close(self, abort, timeout)

source code 

Close client. See EngineClient._close().

Overrides: EngineClient.EngineClient._close

_handle_read(self, sname)

source code 

Engine is telling us there is data available for reading.

Overrides: EngineClient.EngineClient._handle_read

_flush_read(self, sname)

source code 

Called at close time to flush stream read buffer.

Overrides: EngineClient.EngineClient._flush_read