Package org.apache.activemq.transport.vm
Class VMTransportServer
- java.lang.Object
-
- org.apache.activemq.transport.vm.VMTransportServer
-
- All Implemented Interfaces:
org.apache.activemq.Service,org.apache.activemq.transport.TransportServer
public class VMTransportServer extends Object implements org.apache.activemq.transport.TransportServer
Broker side of the VMTransport
-
-
Constructor Summary
Constructors Constructor Description VMTransportServer(URI location, boolean disposeOnDisconnect)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.activemq.transport.Transportconfigure(org.apache.activemq.transport.Transport transport)Configure transportVMTransportconnect()URIgetBindURI()intgetConnectionCount()URIgetConnectURI()longgetMaxConnectionExceededCount()InetSocketAddressgetSocketAddress()booleanisAllowLinkStealing()booleanisSslServer()voidresetStatistics()voidsetAcceptListener(org.apache.activemq.transport.TransportAcceptListener acceptListener)Set the Transport accept listener for new ConnectionsvoidsetAllowLinkStealing(boolean allowLinkStealing)voidsetBrokerInfo(org.apache.activemq.command.BrokerInfo brokerInfo)voidstart()voidstop()StringtoString()
-
-
-
Constructor Detail
-
VMTransportServer
public VMTransportServer(URI location, boolean disposeOnDisconnect)
- Parameters:
location-disposeOnDisconnect-
-
-
Method Detail
-
toString
public String toString()
-
connect
public VMTransport connect() throws IOException
- Returns:
- new VMTransport
- Throws:
IOException
-
configure
public static org.apache.activemq.transport.Transport configure(org.apache.activemq.transport.Transport transport)
Configure transport- Parameters:
transport-- Returns:
- the Transport
-
setAcceptListener
public void setAcceptListener(org.apache.activemq.transport.TransportAcceptListener acceptListener)
Set the Transport accept listener for new Connections- Specified by:
setAcceptListenerin interfaceorg.apache.activemq.transport.TransportServer- Parameters:
acceptListener-
-
start
public void start() throws IOException- Specified by:
startin interfaceorg.apache.activemq.Service- Throws:
IOException
-
stop
public void stop() throws IOException- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
IOException
-
getConnectURI
public URI getConnectURI()
- Specified by:
getConnectURIin interfaceorg.apache.activemq.transport.TransportServer
-
getBindURI
public URI getBindURI()
-
setBrokerInfo
public void setBrokerInfo(org.apache.activemq.command.BrokerInfo brokerInfo)
- Specified by:
setBrokerInfoin interfaceorg.apache.activemq.transport.TransportServer
-
getSocketAddress
public InetSocketAddress getSocketAddress()
- Specified by:
getSocketAddressin interfaceorg.apache.activemq.transport.TransportServer
-
getConnectionCount
public int getConnectionCount()
-
isSslServer
public boolean isSslServer()
- Specified by:
isSslServerin interfaceorg.apache.activemq.transport.TransportServer
-
isAllowLinkStealing
public boolean isAllowLinkStealing()
- Specified by:
isAllowLinkStealingin interfaceorg.apache.activemq.transport.TransportServer
-
setAllowLinkStealing
public void setAllowLinkStealing(boolean allowLinkStealing)
-
getMaxConnectionExceededCount
public long getMaxConnectionExceededCount()
- Specified by:
getMaxConnectionExceededCountin interfaceorg.apache.activemq.transport.TransportServer
-
resetStatistics
public void resetStatistics()
- Specified by:
resetStatisticsin interfaceorg.apache.activemq.transport.TransportServer
-
-