class documentation

class twisted.trial._dist.worker.LocalWorker(ProcessProtocol): (source)

View In Hierarchy

Local process worker protocol. This worker runs as a local process and communicates via stdin/out.

Method __init__ Undocumented
Instance Variable endDeferred Undocumented
Method connectionMade When connection is made, create the AMP protocol instance.
Method connectionLost On connection lost, close the log files that we're managing for stdin and stdout.
Method processEnded When the process closes, call connectionLost for cleanup purposes and forward the information to the _ampProtocol.
Method outReceived Send data received from stdout to log.
Method errReceived Write error data to log.
Method childDataReceived Handle data received on the specific pipe for the _ampProtocol.
Instance Variable _ampProtocol The AMP protocol instance used to communicate with the worker.
Instance Variable _logDirectory The directory where logs will reside.
Instance Variable _logFile The name of the main log file for tests output.
Instance Variable _outLog Undocumented
Instance Variable _errLog Undocumented
Instance Variable _testLog Undocumented

Inherited from ProcessProtocol:

Method childConnectionLost Called when a file descriptor associated with the child process is closed.
Method inConnectionLost This will be called when stdin is closed.
Method outConnectionLost This will be called when stdout is closed.
Method errConnectionLost This will be called when stderr is closed.
Method processExited This will be called when the subprocess exits.

Inherited from BaseProtocol (via ProcessProtocol):

Instance Variable connected Undocumented
Instance Variable transport Undocumented
Method makeConnection Make a connection to a transport and a server.
_ampProtocol = (source)
The AMP protocol instance used to communicate with the worker.
_logDirectory = (source)
The directory where logs will reside.
_logFile = (source)
The name of the main log file for tests output.
def __init__(self, ampProtocol, logDirectory, logFile): (source)

Undocumented

endDeferred = (source)

Undocumented

def connectionMade(self): (source)

When connection is made, create the AMP protocol instance.

_outLog = (source)

Undocumented

_errLog = (source)

Undocumented

_testLog = (source)

Undocumented

def connectionLost(self, reason): (source)

On connection lost, close the log files that we're managing for stdin and stdout.

def processEnded(self, reason): (source)

When the process closes, call connectionLost for cleanup purposes and forward the information to the _ampProtocol.

def outReceived(self, data): (source)

Send data received from stdout to log.

def errReceived(self, data): (source)

Write error data to log.

def childDataReceived(self, childFD, data): (source)

Handle data received on the specific pipe for the _ampProtocol.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.