|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.activemq.transport.NetworkConnector
Represents a connector to one or more remote brokers.
This class manages a number of NetworkChannel
instances
which may or may not be connected to a
remote broker at any point in time.
NetworkChannel
instances or could use
discovery to find them.
Constructor Summary | |
NetworkConnector(BrokerContainer brokerContainer)
|
Method Summary | |
void |
addNetworkChannel(NetworkChannel networkChannel)
Adds a new network channel |
NetworkChannel |
addNetworkChannel(String uri)
Adds a new network channel for the given URI |
BrokerContainer |
getBrokerContainer()
|
List |
getNetworkChannels()
|
void |
removeNetworkChannel(NetworkChannel networkChannel)
Removes a network channel |
void |
setNetworkChannels(List networkChannels)
Sets a list of NetworkChannel instances |
void |
setTransportChannelListener(TransportChannelListener listener)
|
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 NetworkConnector(BrokerContainer brokerContainer)
Method Detail |
public void start() throws JMSException
Service
start
in interface Service
JMSException
public void stop() throws JMSException
Service
stop
in interface Service
JMSException
public void setTransportChannelListener(TransportChannelListener listener)
public BrokerContainer getBrokerContainer()
public List getNetworkChannels()
public void setNetworkChannels(List networkChannels)
NetworkChannel
instances
networkChannels
- public NetworkChannel addNetworkChannel(String uri)
uri
-
public void addNetworkChannel(NetworkChannel networkChannel)
public void removeNetworkChannel(NetworkChannel networkChannel)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |