activemq::transport::logging::LoggingTransport Class Reference

A transport filter that logs commands as they are sent/received. More...

#include <src/main/activemq/transport/logging/LoggingTransport.h>

Inheritance diagram for activemq::transport::logging::LoggingTransport:
Inheritance graph
[legend]

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< Responserequest (const Pointer< Command > command)
 Sends the given command to the broker and then waits for the response.
Parameters:
command the command to be sent.
Returns:
the response from the broker.
Exceptions:
IOException if an exception occurs during the read of the command.
UnsupportedOperationException if this method is not implemented by this transport.

virtual Pointer< Responserequest (const Pointer< Command > command, unsigned int timeout)
 Sends the given command to the broker and then waits for the response.
Parameters:
command The command to be sent.
timeout The time to wait for this response.
Returns:
the response from the broker.
Exceptions:
IOException if an exception occurs during the read of the command.
UnsupportedOperationException if this method is not implemented by this transport.


Detailed Description

A transport filter that logs commands as they are sent/received.


Constructor & Destructor Documentation

activemq::transport::logging::LoggingTransport::LoggingTransport ( const Pointer< Transport next  ) 

Constructor.

Parameters:
next - the next Transport in the chain
virtual activemq::transport::logging::LoggingTransport::~LoggingTransport (  )  [inline, virtual]

Member Function Documentation

virtual void activemq::transport::logging::LoggingTransport::onCommand ( const Pointer< Command command  )  [virtual]

Event handler for the receipt of a command.

Parameters:
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.

Parameters:
command The command to be sent.
Exceptions:
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.

Parameters:
command The command to be sent.
timeout The time to wait for this response.
Returns:
the response from the broker.
Exceptions:
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.

Parameters:
command the command to be sent.
Returns:
the response from the broker.
Exceptions:
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.


The documentation for this class was generated from the following file:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1