class documentation
class LocalWorker(ProcessProtocol): (source)
Constructor: LocalWorker(ampProtocol, logDirectory, logFile)
Local process worker protocol. This worker runs as a local process and communicates via stdin/out.
| Method | __init__ |
Undocumented |
| Method | child |
Handle data received on the specific pipe for the _ampProtocol. |
| Method | connection |
On connection lost, close the log files that we're managing for stdin and stdout. |
| Method | connection |
When connection is made, create the AMP protocol instance. |
| Method | err |
Write error data to log. |
| Async Method | exit |
Cause the worker process to exit. |
| Method | out |
Send data received from stdout to log. |
| Method | process |
When the process closes, call connectionLost for cleanup purposes and forward the information to the _ampProtocol. |
| Instance Variable | end |
Undocumented |
| Instance Variable | transport |
Undocumented |
| Instance Variable | _amp |
The AMP protocol instance used to communicate with the worker. |
| Instance Variable | _err |
Undocumented |
| Instance Variable | _log |
The directory where logs will reside. |
| Instance Variable | _log |
The main log file for tests output. |
| Instance Variable | _out |
Undocumented |
Inherited from ProcessProtocol:
| Method | child |
Called when a file descriptor associated with the child process is closed. |
| Method | err |
This will be called when stderr is closed. |
| Method | in |
This will be called when stdin is closed. |
| Method | out |
This will be called when stdout is closed. |
| Method | process |
This will be called when the subprocess exits. |
Inherited from BaseProtocol (via ProcessProtocol):
| Method | make |
Make a connection to a transport and a server. |
| Instance Variable | connected |
Undocumented |
def __init__(self, ampProtocol:
LocalWorkerAMP, logDirectory: FilePath[ Any], logFile: TextIO):
(source)
¶
Undocumented