A transport filter that logs commands as they are sent/received. More...
#include <src/main/activemq/transport/logging/LoggingTransport.h>

Public Member Functions | |||||||||||||
| LoggingTransport (const Pointer< Transport > next) | |||||||||||||
| Constructor. | |||||||||||||
| virtual | ~LoggingTransport () | ||||||||||||
| virtual void | onCommand (const Pointer< Command > command) | ||||||||||||
| Event handler for the receipt of a command. | |||||||||||||
| virtual void | oneway (const Pointer< Command > command) | ||||||||||||
| Sends a one-way command. | |||||||||||||
| 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.
| |||||||||||||
A transport filter that logs commands as they are sent/received.
| activemq::transport::logging::LoggingTransport::LoggingTransport | ( | const Pointer< Transport > | next | ) |
Constructor.
| next | - the next Transport in the chain |
| virtual activemq::transport::logging::LoggingTransport::~LoggingTransport | ( | ) | [inline, virtual] |
| virtual void activemq::transport::logging::LoggingTransport::onCommand | ( | const Pointer< Command > | command | ) | [virtual] |
Event handler for the receipt of a command.
| command | - the received command object. |
Reimplemented from activemq::transport::TransportFilter.
| virtual void activemq::transport::logging::LoggingTransport::oneway | ( | const Pointer< Command > | command | ) | [virtual] |
Sends a one-way command.
Does not wait for any response from the broker.
| command | The command to be sent. |
| IOException | if an exception occurs during writing of the command. | |
| UnsupportedOperationException | if this method is not implemented by this transport. |
Reimplemented from activemq::transport::TransportFilter.
| virtual Pointer<Response> activemq::transport::logging::LoggingTransport::request | ( | const Pointer< Command > | command, | |
| unsigned int | timeout | |||
| ) | [virtual] |
Sends the given command to the broker and then waits for the response.
| command | The command to be sent. | |
| timeout | The time to wait for this response. |
| IOException | if an exception occurs during the read of the command. | |
| UnsupportedOperationException | if this method is not implemented by this transport. |
Not supported by this class - throws an exception.
Reimplemented from activemq::transport::TransportFilter.
| virtual Pointer<Response> activemq::transport::logging::LoggingTransport::request | ( | const Pointer< Command > | command | ) | [virtual] |
Sends the given command to the broker and then waits for the response.
| command | the command to be sent. |
| IOException | if an exception occurs during the read of the command. | |
| UnsupportedOperationException | if this method is not implemented by this transport. |
Not supported by this class - throws an exception.
Reimplemented from activemq::transport::TransportFilter.
1.6.1