#include <IOTransport.h>
Inheritance diagram for activemq::transport::IOTransport:
Public Member Functions | |
IOTransport () | |
virtual | ~IOTransport () |
virtual void | oneway (Command *command) throw ( CommandIOException, exceptions::UnsupportedOperationException ) |
virtual Response * | request (Command *command) throw ( CommandIOException, exceptions::UnsupportedOperationException ) |
virtual void | setCommandListener (CommandListener *listener) |
virtual void | setCommandReader (CommandReader *reader) |
virtual void | setCommandWriter (CommandWriter *writer) |
virtual void | setTransportExceptionListener (TransportExceptionListener *listener) |
virtual void | setInputStream (io::InputStream *is) |
virtual void | setOutputStream (io::OutputStream *os) |
virtual void | start () throw ( cms::CMSException ) |
virtual void | close () throw ( cms::CMSException ) |
virtual void | run () |
Private Member Functions | |
void | fire (exceptions::ActiveMQException &ex) |
void | fire (Command *command) |
Private Attributes | |
CommandListener * | listener |
CommandReader * | reader |
CommandWriter * | writer |
TransportExceptionListener * | exceptionListener |
io::InputStream * | inputStream |
io::OutputStream * | outputStream |
concurrent::Thread * | thread |
bool | closed |
|
|
|
|
|
Stops the polling thread and closes the streams. This can be called explicitly, but is also called in the destructor. Once this object has been closed, it cannot be restarted.
|
|
Notify the command listener.
|
|
Notify the excpetion listener
|
|
Sends a one-way command. Does not wait for any response from the broker.
Implements activemq::transport::Transport. |
|
Not supported by this class - throws an exception.
Implements activemq::transport::Transport. |
|
Runs the polling thread. Implements activemq::concurrent::Runnable. |
|
Assigns the command listener for non-response commands.
Implements activemq::transport::Transport. |
|
Sets the command reader.
Implements activemq::transport::Transport. |
|
Sets the command writer.
Implements activemq::transport::Transport. |
|
Sets the input stream for in-coming commands.
|
|
Sets the output stream for out-going commands.
|
|
Sets the observer of asynchronous exceptions from this transport.
Implements activemq::transport::Transport. |
|
Starts this transport object and creates the thread for polling on the input stream for commands. If this object has been closed, throws an exception. Before calling start, the caller must set the IO streams and the reader and writer objects.
|
|
Flag marking this transport as closed. |
|
Listener of exceptions from this transport. |
|
The input stream for incoming commands. |
|
Listener to incoming commands. |
|
The output stream for out-going commands. |
|
Reads commands from the input stream. |
|
The polling thread. |
|
Writes commands to the output stream. |