twisted.trial._dist.workerView Source (View In Hierarchy)
Local implementation of the manager commands.
|Method||addSuccess||Add a success to the reporter.|
|Method||addError||Add an error to the reporter.|
|Method||addFailure||Add a failure to the reporter.|
|Method||addSkip||Add a skip to the reporter.|
|Method||addExpectedFailure||Add an expected failure to the reporter.|
|Method||addUnexpectedSuccess||Add an unexpected success to the reporter.|
|Method||testWrite||Print test output from the worker.|
|Method||run||Run a test.|
|Method||setTestStream||Set the stream used to log output from tests.|
|Method||_buildFailure||Helper to build a
|Method||_stopTest||Stop the current running test case, forwarding the result.|
Inherited from AMP:
|Method||locateResponder||Unify the implementations of
|Method||__repr__||A verbose string representation which gives us information about this AMP connection.|
|Method||makeConnection||Emit a helpful log message when the connection is made.|
|Method||connectionLost||Emit a helpful log message when the connection is lost.|
|Method||sendBox||Send a amp.Box to my peer.|
|Method||dataReceived||Either parse incoming data as
|Method||proto_init||String received in the 'init' state.|
|Method||proto_key||String received in the 'key' state. If the key is empty, a complete box has been received.|
|Method||proto_value||String received in the 'value' state.|
|Method||lengthLimitExceeded||The key length limit was exceeded. Disconnect the transport and make sure a meaningful exception is reported.|
|Method||unhandledError||The buck stops here. This error was completely unhandled, time to terminate the connection.|
|Instance Variable||_keyLengthLimitExceeded||A flag which is only true when the connection is being closed because a key length prefix which was longer than allowed by the protocol was received.|
|Method||_switchTo||Switch this BinaryBoxProtocol's transport to a new protocol. You need to do this 'simultaneously' on both ends of a connection; the easiest way to do this is to use a subclass of ProtocolSwitchCommand.|
|Method||_unlockFromSwitch||Unlock this locked binary protocol so that further boxes may be sent again. This is used after an attempt to switch protocols has failed for some reason.|
|Method||_prepareTLS||Used by StartTLSCommand to put us into the state where we don't actually
send things that get sent, instead we buffer them. see
|Method||_startTLS||Used by TLSBox to initiate the SSL handshake.|
|Method||_defaultStartTLSResponder||The default TLS responder doesn't specify any certificate or anything.|
|Instance Variable||state||Current state of the protocol. Defaults to
|Method||stringReceived||Choose a protocol phase function and call it.|
|Instance Variable||structFormat||format used for struct packing/unpacking. Define it in subclass. (type:
|Instance Variable||prefixLength||length of the prefix, in bytes. Define it in subclass, using
|Method||stringReceived||Override this for notification when each complete string is received.|
|Method||sendString||Send a prefixed string to the other end of the connection.|
|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
|Instance Variable||_compatibilityOffset||the offset within
|Method||logPrefix||Return a prefix matching the class name, to identify log messages related to this protocol instance.|
|Method||connectionMade||Called when a connection is made.|
|Method||fileDescriptorReceived||Collect received file descriptors to be claimed later by
|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
|Instance Variable||_sendingDescriptorCounter||A no-argument callable which returns the ordinals, starting from 0. This
is used to construct values for
|Instance Variable||_receivingDescriptorCounter||A no-argument callable which returns the ordinals, starting from 0. This
is used to construct values for
|Method||_sendFileDescriptor||Assign and return the next ordinal to the given descriptor after sending the descriptor over this protocol's transport.|
|Instance Variable||locator||an object with a
|Instance Variable||boxSender||an object which can send boxes, via the
|Method||startReceivingBoxes||The given boxSender is going to start calling boxReceived on this
|Method||stopReceivingBoxes||No further boxes will be received here. Terminate all currently outstanding command deferreds with the given reason.|
|Method||failAllOutgoing||Call the errback on all outstanding requests awaiting responses.|
|Method||callRemoteString||This is a low-level API, designed only for optimizing simple messages for which the overhead of parsing is too great.|
|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||unhandledError||This is a terminal callback called after application code has had a chance to quash any errors.|
|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||dispatchCommand||A box with a _command key was received.|
|Instance Variable||_outstandingRequests||a dictionary mapping request IDs to
|Method||_nextTag||Generate protocol-local serial numbers for _ask keys.|
|Method||_sendBoxCommand||Send a command across the wire with the given
|Method||_answerReceived||An AMP box was received that answered a command previously sent with
|Method||_errorReceived||An AMP box was received that answered a command previously sent with
|Method||_safeEmit||Emit a box, ignoring
|Method||lookupFunction||Deprecated synonym for
|Method||_wrapWithSerialization||Wrap aCallable with its command's argument de-serialization and result serialization logic.|
Add a success to the reporter.
Helper to build a
Failure with some traceback.
|error||The class name of the |
|frames||A flat list of strings representing the information need to approximatively
Add an error to the reporter.
Add a failure to the reporter.
Add a skip to the reporter.
Add an expected failure to the reporter.
Add an unexpected success to the reporter.
Print test output from the worker.
Stop the current running test case, forwarding the result.
Run a test.
Set the stream used to log output from tests.