|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.transport.AbstractTransportChannel
org.codehaus.activemq.transport.tcp.TcpTransportChannel
A tcp implementation of a TransportChannel
| Field Summary | |
protected java.net.Socket |
socket
|
| Constructor Summary | |
protected |
TcpTransportChannel(WireFormat wireFormat)
Construct basic helpers |
|
TcpTransportChannel(WireFormat wireFormat,
java.net.Socket socket,
Executor executor)
|
|
TcpTransportChannel(WireFormat wireFormat,
java.net.URI remoteLocation)
Connect to a remote Node - e.g. |
|
TcpTransportChannel(WireFormat wireFormat,
java.net.URI remoteLocation,
java.net.URI localLocation)
Connect to a remote Node - e.g. |
| Method Summary | |
void |
asyncSend(Packet packet)
Asynchronously send a Packet |
protected java.net.Socket |
createSocket(java.net.URI remoteLocation)
Factory method to create a new socket |
protected java.net.Socket |
createSocket(java.net.URI remoteLocation,
java.net.URI localLocation)
Factory method to create a new socket |
protected void |
doAsyncSend(Packet packet)
Actually performs the async send of a packet |
boolean |
isMulticast()
|
void |
run()
reads packets from a Socket |
void |
start()
start listeneing for events |
void |
stop()
close the channel |
java.lang.String |
toString()
pretty print for object |
| Methods inherited from class org.codehaus.activemq.transport.AbstractTransportChannel |
addTransportStatusEventListener, doConsumePacket, doHandleReceipt, fireStatusEvent, fireStatusEvent, getClientID, getExceptionListener, getPacketListener, getTransportChannelListener, onAsyncException, removeTransportStatusEventListener, send, send, setClientID, setExceptionListener, setPacketListener, setTransportChannelListener, stopExecutor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.net.Socket socket
| Constructor Detail |
protected TcpTransportChannel(WireFormat wireFormat)
public TcpTransportChannel(WireFormat wireFormat,
java.net.URI remoteLocation)
throws JMSException
remoteLocation -
JMSException
public TcpTransportChannel(WireFormat wireFormat,
java.net.URI remoteLocation,
java.net.URI localLocation)
throws JMSException
remoteLocation - localLocation - - e.g. local InetAddress and local port
JMSException
public TcpTransportChannel(WireFormat wireFormat,
java.net.Socket socket,
Executor executor)
throws JMSException
socket -
JMSException| Method Detail |
public void stop()
stop in interface TransportChannelstop in class AbstractTransportChannel
public void start()
throws JMSException
start in interface TransportChannelJMSException - if an error occurs
public void asyncSend(Packet packet)
throws JMSException
asyncSend in interface TransportChannelpacket -
JMSExceptionpublic boolean isMulticast()
isMulticast in interface TransportChannelpublic void run()
run in interface java.lang.Runnablepublic java.lang.String toString()
protected void doAsyncSend(Packet packet)
throws JMSException
doAsyncSend in class AbstractTransportChannelpacket -
JMSException
protected java.net.Socket createSocket(java.net.URI remoteLocation)
throws java.net.UnknownHostException,
java.io.IOException
remoteLocation - the URI to connect to
java.net.UnknownHostException
java.io.IOException
protected java.net.Socket createSocket(java.net.URI remoteLocation,
java.net.URI localLocation)
throws java.io.IOException,
java.net.UnknownHostException
remoteLocation - localLocation -
java.io.IOException
java.net.UnknownHostException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||