|
|||||||||||
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.
Field Summary | |
protected PooledExecutor |
threadPool
|
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 |
protected NetworkChannel |
createNetworkChannel(String url)
Create a channel from the url |
BrokerContainer |
getBrokerContainer()
|
Map |
getLocalDetails()
|
List |
getNetworkChannels()
|
String |
getRemotePassword()
|
String |
getRemoteUserName()
|
PooledExecutor |
getThreadPool()
|
void |
removeNetworkChannel(NetworkChannel networkChannel)
Removes a network channel |
void |
setLocalDetails(Map localDetails)
|
void |
setNetworkChannels(List networkChannels)
Sets a list of NetworkChannel instances |
void |
setRemotePassword(String remotePassword)
|
void |
setRemoteUserName(String remoteUserName)
|
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 |
Field Detail |
protected PooledExecutor threadPool
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 PooledExecutor getThreadPool()
public List getNetworkChannels()
public Map getLocalDetails()
public void setLocalDetails(Map localDetails)
public String getRemotePassword()
public void setRemotePassword(String remotePassword)
public String getRemoteUserName()
public void setRemoteUserName(String remoteUserName)
public void setNetworkChannels(List networkChannels)
NetworkChannel
instances
networkChannels
- public NetworkChannel addNetworkChannel(String uri)
uri
-
public void addNetworkChannel(NetworkChannel networkChannel)
public void removeNetworkChannel(NetworkChannel networkChannel)
protected NetworkChannel createNetworkChannel(String url)
url
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |