|
| | MockTransport (const Pointer< wireformat::WireFormat > wireFormat, const Pointer< ResponseBuilder > responseBuilder) |
| |
| virtual | ~MockTransport () |
| |
| virtual void | fireCommand (const Pointer< Command > command) |
| | Fires a Command back through this transport to its registered CommandListener if there is one.
|
| |
| virtual void | fireException (const exceptions::ActiveMQException &ex) |
| | Fires a Exception back through this transport to its registered ExceptionListener if there is one.
|
| |
| void | setResponseBuilder (const Pointer< ResponseBuilder > responseBuilder) |
| | Sets the ResponseBuilder that this class uses to create Responses to Commands sent.
|
| |
| virtual void | setOutgoingListener (TransportListener *listener) |
| | Sets a Listener that gets notified for every command that would have been sent by this transport to the Broker, this allows a client to verify that its messages are making it to the wire.
|
| |
| Pointer< wireformat::WireFormat > | getWireFormat () const |
| | Gets the currently set WireFormat.
|
| |
| virtual void | oneway (const Pointer< Command > command) |
| | Sends a one-way command.
|
| |
| virtual Pointer< FutureResponse > | asyncRequest (const Pointer< Command > command, const Pointer< ResponseCallback > responseCallback) |
| | Sends a commands asynchronously, returning a FutureResponse object that the caller can use to check to find out the response from the broker.
|
| |
| virtual Pointer< Response > | request (const Pointer< Command > command) |
| | Sends the given command to the broker and then waits for the response.
|
| |
| virtual Pointer< Response > | request (const Pointer< Command > command, unsigned int timeout) |
| | Sends the given command to the broker and then waits for the response.
|
| |
| virtual void | setWireFormat (const Pointer< wireformat::WireFormat > wireFormat AMQCPP_UNUSED) |
| | Sets the WireFormat instance to use.
|
| |
| virtual void | setTransportListener (TransportListener *listener) |
| | Sets the observer of asynchronous events from this transport.
|
| |
| virtual TransportListener * | getTransportListener () const |
| | Gets the observer of asynchronous events from this transport.
|
| |
| virtual void | start () |
| | Starts the Transport, the send methods of a Transport will throw an exception if used before the Transport is started.
|
| |
| virtual void | stop () |
| | Stops the Transport.
|
| |
| virtual void | close () |
| | Closes this object and deallocates the appropriate resources.
|
| |
| virtual Transport * | narrow (const std::type_info &typeId) |
| | Narrows down a Chain of Transports to a specific Transport to allow a higher level transport to skip intermediate Transports in certain circumstances.
|
| |
| virtual bool | isFaultTolerant () const |
| | Is this Transport fault tolerant, meaning that it will reconnect to a broker on disconnect.
|
| |
| virtual bool | isConnected () const |
| | Is the Transport Connected to its Broker.
|
| |
| virtual bool | isClosed () const |
| | Has the Transport been shutdown and no longer usable.
|
| |
| virtual std::string | getRemoteAddress () const |
| |
| virtual void | reconnect (const decaf::net::URI &uri AMQCPP_UNUSED) |
| |
| std::string | getName () const |
| |
| void | setName (const std::string &name) |
| |
| bool | isFailOnSendMessage () const |
| |
| void | setFailOnSendMessage (bool value) |
| |
| int | getNumSentMessageBeforeFail () const |
| |
| void | setNumSentMessageBeforeFail (int value) |
| |
| int | getNumSentMessages () const |
| |
| void | setNumSentMessages (int value) |
| |
| bool | isFailOnReceiveMessage () const |
| |
| void | setFailOnReceiveMessage (bool value) |
| |
| int | getNumReceivedMessageBeforeFail () const |
| |
| void | setNumReceivedMessageBeforeFail (int value) |
| |
| int | getNumReceivedMessages () const |
| |
| void | setNumReceivedMessages (int value) |
| |
| bool | isFailOnKeepAliveSends () const |
| |
| void | setFailOnKeepAliveSends (bool value) |
| |
| int | getNumSentKeepAlivesBeforeFail () const |
| |
| void | setNumSentKeepAlivesBeforeFail (int value) |
| |
| int | getNumSentKeepAlives () const |
| |
| void | setNumSentKeepAlives (int value) |
| |
| bool | isFailOnStart () const |
| |
| void | setFailOnStart (bool value) |
| |
| bool | isFailOnStop () const |
| |
| void | setFailOnStop (bool value) |
| |
| bool | isFailOnClose () const |
| |
| void | setFailOnClose (bool value) |
| |
| virtual bool | isReconnectSupported () const |
| |
| virtual bool | isUpdateURIsSupported () const |
| |
| virtual void | updateURIs (bool rebalance AMQCPP_UNUSED, const decaf::util::List< decaf::net::URI > &uris AMQCPP_UNUSED) |
| |
| virtual | ~Transport () |
| |
| virtual void | start ()=0 |
| | Starts the Transport, the send methods of a Transport will throw an exception if used before the Transport is started.
|
| |
| virtual void | stop ()=0 |
| | Stops the Transport.
|
| |
| virtual void | oneway (const Pointer< Command > command)=0 |
| | Sends a one-way command.
|
| |
| virtual Pointer< FutureResponse > | asyncRequest (const Pointer< Command > command, const Pointer< ResponseCallback > responseCallback)=0 |
| | Sends a commands asynchronously, returning a FutureResponse object that the caller can use to check to find out the response from the broker.
|
| |
| virtual Pointer< Response > | request (const Pointer< Command > command)=0 |
| | Sends the given command to the broker and then waits for the response.
|
| |
| virtual Pointer< Response > | request (const Pointer< Command > command, unsigned int timeout)=0 |
| | Sends the given command to the broker and then waits for the response.
|
| |
| virtual Pointer< wireformat::WireFormat > | getWireFormat () const =0 |
| | Gets the WireFormat instance that is in use by this transport.
|
| |
| virtual void | setWireFormat (const Pointer< wireformat::WireFormat > wireFormat)=0 |
| | Sets the WireFormat instance to use.
|
| |
| virtual void | setTransportListener (TransportListener *listener)=0 |
| | Sets the observer of asynchronous events from this transport.
|
| |
| virtual TransportListener * | getTransportListener () const =0 |
| | Gets the observer of asynchronous events from this transport.
|
| |
| virtual Transport * | narrow (const std::type_info &typeId)=0 |
| | Narrows down a Chain of Transports to a specific Transport to allow a higher level transport to skip intermediate Transports in certain circumstances.
|
| |
| virtual bool | isFaultTolerant () const =0 |
| | Is this Transport fault tolerant, meaning that it will reconnect to a broker on disconnect.
|
| |
| virtual bool | isConnected () const =0 |
| | Is the Transport Connected to its Broker.
|
| |
| virtual bool | isClosed () const =0 |
| | Has the Transport been shutdown and no longer usable.
|
| |
| virtual bool | isReconnectSupported () const =0 |
| |
| virtual bool | isUpdateURIsSupported () const =0 |
| |
| virtual std::string | getRemoteAddress () const =0 |
| |
| virtual void | reconnect (const decaf::net::URI &uri)=0 |
| | reconnect to another location
|
| |
| virtual void | updateURIs (bool rebalance, const decaf::util::List< decaf::net::URI > &uris)=0 |
| | Updates the set of URIs the Transport can connect to.
|
| |
| virtual | ~Service () |
| |
| virtual void | start ()=0 |
| |
| virtual void | stop ()=0 |
| |
| virtual | ~Closeable () |
| |
| virtual void | close ()=0 |
| | Closes this object and deallocates the appropriate resources.
|
| |
The MockTransport defines a base level Transport class that is intended to be used in place of an a regular protocol Transport suck as TCP.
This Transport assumes that it is the base Transport in the Transports stack, and destroys any Transports that are passed to it in its constructor.
This Transport defines an Interface ResponseBuilder which must be implemented by any protocol for which the Transport is used to Emulate. The Transport hands off all outbound commands to the ResponseBuilder for processing, it is up to the builder to create appropriate responses and schedule any asynchronous messages that might result from a message sent to the Broker.