Method |
__init__ |
Undocumented |
Method |
run |
Run a test case by name. |
Method |
start |
Set up the worker, moving into given directory for tests to run in them. |
Instance Variable |
_forceGarbageCollection |
Undocumented |
Instance Variable |
_loader |
Undocumented |
Instance Variable |
_result |
Undocumented |
Inherited from AMP
:
Inherited from BinaryBoxProtocol
(via AMP
):
Inherited from StatefulStringProtocol
(via AMP
, BinaryBoxProtocol
):
Method |
stringReceived |
Choose a protocol phase function and call it. |
Instance Variable |
state |
Current state of the protocol. Defaults to 'init'. |
Inherited from Int16StringReceiver
(via AMP
, BinaryBoxProtocol
):
Inherited from IntNStringReceiver
(via AMP
, BinaryBoxProtocol
, Int16StringReceiver
):
Method |
sendString |
Send a prefixed string to the other end of the connection. |
Method |
stringReceived |
Override this for notification when each complete string is received. |
Instance Variable |
_compatibilityOffset |
the offset within _unprocessed to the next message to be parsed. (used to generate the recvd attribute) |
Instance Variable |
_unprocessed |
bytes received, but not yet broken up into messages / sent to stringReceived. _compatibilityOffset must be updated when this value is updated so that the recvd attribute can be generated correctly. |
Inherited from Protocol
(via AMP
, BinaryBoxProtocol
, Int16StringReceiver
, IntNStringReceiver
):
Method |
logPrefix |
Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Class Variable |
factory |
Undocumented |
Inherited from BaseProtocol
(via AMP
, BinaryBoxProtocol
, Int16StringReceiver
, IntNStringReceiver
, Protocol
):
Inherited from _PauseableMixin
(via AMP
, BinaryBoxProtocol
, Int16StringReceiver
, IntNStringReceiver
):
Inherited from _DescriptorExchanger
(via AMP
, BinaryBoxProtocol
):
Method |
fileDescriptorReceived |
Collect received file descriptors to be claimed later by Descriptor . |
Method |
_sendFileDescriptor |
Assign and return the next ordinal to the given descriptor after sending the descriptor over this protocol's transport. |
Instance Variable |
_descriptors |
Temporary storage for all file descriptors received. Values in this dictionary are the file descriptors (as integers). Keys in this dictionary are ordinals giving the order in which each descriptor was received. The ordering information is used to allow Descriptor to determine which is the correct descriptor for any particular usage of that argument type. |
Instance Variable |
_getDescriptor |
Undocumented |
Instance Variable |
_receivingDescriptorCounter |
A no-argument callable which returns the ordinals, starting from 0. This is used to construct values for fileDescriptorReceived. |
Instance Variable |
_sendingDescriptorCounter |
A no-argument callable which returns the ordinals, starting from 0. This is used to construct values for _sendFileDescriptor. |
Inherited from BoxDispatcher
(via AMP
):
Method |
ampBoxReceived |
An AmpBox was received, representing a command, or an answer to a previously issued command (either successful or erroneous). Respond to it according to its contents. |
Method |
callRemote |
This is the primary high-level API for sending messages via AMP. Invoke it with a command and appropriate arguments to send a message to this connection's peer. |
Method |
callRemoteString |
This is a low-level API, designed only for optimizing simple messages for which the overhead of parsing is too great. |
Method |
dispatchCommand |
A box with a _command key was received. |
Method |
failAllOutgoing |
Call the errback on all outstanding requests awaiting responses. |
Method |
startReceivingBoxes |
The given boxSender is going to start calling boxReceived on this BoxDispatcher . |
Method |
stopReceivingBoxes |
No further boxes will be received here. Terminate all currently outstanding command deferreds with the given reason. |
Method |
unhandledError |
This is a terminal callback called after application code has had a chance to quash any errors. |
Instance Variable |
boxSender |
an object which can send boxes, via the _sendBoxCommand method, such as an AMP instance. |
Instance Variable |
locator |
an object with a CommandLocator.locateResponder method that locates a responder function that takes a Box and returns a result (either a Box or a Deferred which fires one). |
Method |
_answerReceived |
An AMP box was received that answered a command previously sent with callRemote . |
Method |
_commandReceived |
|
Method |
_errorReceived |
An AMP box was received that answered a command previously sent with callRemote , with an error. |
Method |
_nextTag |
Generate protocol-local serial numbers for _ask keys. |
Method |
_safeEmit |
Emit a box, ignoring ProtocolSwitched and ConnectionLost errors which cannot be usefully handled. |
Method |
_sendBoxCommand |
Send a command across the wire with the given amp.Box. |
Class Variable |
_counter |
Undocumented |
Instance Variable |
_failAllReason |
Undocumented |
Instance Variable |
_outstandingRequests |
a dictionary mapping request IDs to Deferred s which were returned for those requests. |
Inherited from CommandLocator
(via AMP
):
Inherited from SimpleStringLocator
(via AMP
):