|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.transport.TransportServerChannelSupport
public abstract class TransportServerChannelSupport
An abstract base class useful for implementation inheritance
Constructor Summary | |
---|---|
TransportServerChannelSupport(String url)
|
|
TransportServerChannelSupport(URI url)
|
Method Summary | |
---|---|
void |
addClient(TransportChannel channel)
Add a channel |
InetSocketAddress |
getSocketAddress()
An optional method to return the socket address if there is one on which this channel is listening. |
TransportChannelListener |
getTransportChannelListener()
|
String |
getUrl()
Returns the URL to connect to this connector |
void |
removeClient(TransportChannel channel)
remove a channel |
protected String |
resolveHostName(String hostName)
|
void |
setTransportChannelListener(TransportChannelListener listener)
Registers the listener to be used when new clients connect or disconnect |
void |
setUrl(String url)
|
void |
start()
Called to start the service |
void |
stop()
Called to shutdown the service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransportServerChannelSupport(URI url)
public TransportServerChannelSupport(String url)
Method Detail |
---|
public void start() throws JMSException
Service
start
in interface Service
start
in interface TransportServerChannel
JMSException
- if an error occurspublic void stop() throws JMSException
Service
stop
in interface Service
stop
in interface TransportServerChannel
JMSException
public TransportChannelListener getTransportChannelListener()
public void setTransportChannelListener(TransportChannelListener listener)
TransportServerChannel
setTransportChannelListener
in interface TransportServerChannel
listener
- the listener to be invoked when a client connects
or disconnectspublic String getUrl()
TransportServerChannel
getUrl
in interface TransportServerChannel
public void setUrl(String url)
public InetSocketAddress getSocketAddress()
TransportServerChannel
getSocketAddress
in interface TransportServerChannel
public void addClient(TransportChannel channel)
channel
- public void removeClient(TransportChannel channel)
channel
- protected String resolveHostName(String hostName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |