class documentation
class TestSwitchProto(amp.ProtocolSwitchCommand): (source)
Undocumented
Class Variable | arguments |
Undocumented |
Class Variable | command |
Undocumented |
Class Variable | errors |
Undocumented |
Inherited from ProtocolSwitchCommand
:
Class Method | make |
Serialize a mapping of arguments using this Command 's response schema. |
Method | __init__ |
Create a ProtocolSwitchCommand. |
Instance Variable | proto |
Undocumented |
Method | _do |
When we emit a ProtocolSwitchCommand, lock the protocol, but don't actually switch to the new protocol unless an acknowledgement is received. If an error is received, switch back. |
Inherited from Command
(via ProtocolSwitchCommand
):
Class Method | make |
Serialize a mapping of arguments using this Command 's argument schema. |
Class Method | parse |
Parse a mapping of serialized arguments using this Command 's argument schema. |
Class Method | parse |
Parse a mapping of serialized arguments using this Command 's response schema. |
Class Method | responder |
Declare a method to be a responder for a particular command. |
Class Variable | command |
The type of Box used to issue commands; useful only for protocol-modifying behavior like startTLS or protocol switching. Defaults to a plain vanilla Box . |
Class Variable | extra |
Undocumented |
Class Variable | fatal |
like 'errors', but errors in this list will always terminate the connection, despite being of a recognizable error type. |
Class Variable | response |
A list like arguments , but instead used for the return value. |
Class Variable | response |
The type of Box used to respond to this command; only useful for protocol-modifying behavior like startTLS or protocol switching. Defaults to a plain vanilla Box . |
Instance Variable | requires |
a boolean; defaults to True. Set it to False on your subclass if you want callRemote to return None. Note: this is a hint only to the client side of the protocol. The return-type of a command responder method must always be a dictionary adhering to the contract specified by ... |
Instance Variable | structured |
Undocumented |