|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.transport.TransportChannelSupport
org.activemq.transport.vm.VmTransportChannel
org.activemq.transport.remote.RemoteTransportChannel
public class RemoteTransportChannel
A RemoteTransportChannel
creates an embedded broker that creates a remote connection to another
broker. This connection type is designed for reliable connections, that can use the storage mechansims of an embedded
broker to be decoupled from the remote broker - i.e. for connections that need to be reliable, don't block but maybe
using a transport across an unreliable network connection
An example of the expected format is: remote://tcp://remotebroker:5060
Field Summary |
---|
Fields inherited from class org.activemq.transport.TransportChannelSupport |
---|
cachingEnabled, currentWireFormat, noDelay, pendingStop, transportConnected, usedInternally |
Constructor Summary | |
---|---|
protected |
RemoteTransportChannel(WireFormat wireFormat,
String remoteLocation)
Construct a RemoteTransportChannel |
Method Summary | |
---|---|
String |
getBrokerName()
|
BrokerConnector |
getEmbeddedBrokerConnector()
Some transports that rely on an embedded broker need to create the connector used by the broker |
String |
getRemoteLocation()
|
String |
getRemotePassword()
|
String |
getRemoteUserName()
|
WireFormat |
getWireFormat()
Get the current wireformat used by this channel |
boolean |
isTransportConnected()
|
boolean |
requiresEmbeddedBroker()
Some transports rely on an embedded broker (beer based protocols) |
void |
setBrokerName(String brokerName)
|
void |
setClientID(String clientID)
Provides a way to specify the client ID that this channel is using |
void |
setRemoteLocation(String remoteLocation)
|
void |
setRemotePassword(String remotePassword)
|
void |
setRemoteUserName(String remoteUserName)
|
void |
setWireFormat(WireFormat wireFormat)
set the wire format to be used by this channel |
void |
stop()
close the channel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected RemoteTransportChannel(WireFormat wireFormat, String remoteLocation) throws JMSException
wireFormat
- peerURIs
-
JMSException
Method Detail |
---|
public boolean isTransportConnected()
isTransportConnected
in interface TransportChannel
isTransportConnected
in class TransportChannelSupport
public boolean requiresEmbeddedBroker()
requiresEmbeddedBroker
in interface TransportChannel
requiresEmbeddedBroker
in class TransportChannelSupport
public void setClientID(String clientID)
setClientID
in interface TransportChannel
setClientID
in class TransportChannelSupport
clientID
- public void stop()
TransportChannelSupport
stop
in interface Service
stop
in interface TransportChannel
stop
in class VmTransportChannel
public BrokerConnector getEmbeddedBrokerConnector() throws JMSException
getEmbeddedBrokerConnector
in interface TransportChannel
getEmbeddedBrokerConnector
in class TransportChannelSupport
JMSException
public String getRemoteLocation()
public void setRemoteLocation(String remoteLocation)
remoteLocation
- The remoteLocation to set.public String getRemotePassword()
public void setRemotePassword(String remotePassword)
remotePassword
- The remotePassword to set.public String getRemoteUserName()
public void setRemoteUserName(String remoteUserName)
remoteUserName
- The remoteUserName to set.public WireFormat getWireFormat()
TransportChannelSupport
getWireFormat
in interface TransportChannel
getWireFormat
in class TransportChannelSupport
public void setWireFormat(WireFormat wireFormat)
TransportChannelSupport
setWireFormat
in interface TransportChannel
setWireFormat
in class TransportChannelSupport
wireFormat
- The wireFormat to set.public String getBrokerName()
public void setBrokerName(String brokerName)
brokerName
- The brokerName to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |