org.apache.activemq.transport.vm
Class VMTransportServer
java.lang.Object
org.apache.activemq.transport.vm.VMTransportServer
- All Implemented Interfaces:
- Service, TransportServer
public class VMTransportServer
- extends Object
- implements TransportServer
Broker side of the VMTransport
VMTransportServer
public VMTransportServer(URI location,
boolean disposeOnDisconnect)
- Parameters:
location - disposeOnDisconnect -
toString
public String toString()
- Overrides:
toString in class Object
- Returns:
- a pretty print of this
connect
public VMTransport connect()
throws IOException
- Returns:
- new VMTransport
- Throws:
IOException
configure
public static Transport configure(Transport transport)
- Configure transport
- Parameters:
transport -
- Returns:
- the Transport
setAcceptListener
public void setAcceptListener(TransportAcceptListener acceptListener)
- Set the Transport accept listener for new Connections
- Specified by:
setAcceptListener in interface TransportServer
- Parameters:
acceptListener -
start
public void start()
throws IOException
- Specified by:
start in interface Service
- Throws:
IOException
stop
public void stop()
throws IOException
- Specified by:
stop in interface Service
- Throws:
IOException
getConnectURI
public URI getConnectURI()
- Specified by:
getConnectURI in interface TransportServer
getBindURI
public URI getBindURI()
setBrokerInfo
public void setBrokerInfo(BrokerInfo brokerInfo)
- Specified by:
setBrokerInfo in interface TransportServer
getSocketAddress
public InetSocketAddress getSocketAddress()
- Specified by:
getSocketAddress in interface TransportServer
getConnectionCount
public int getConnectionCount()
isSslServer
public boolean isSslServer()
- Specified by:
isSslServer in interface TransportServer
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.