org.apache.geronimo.activemq.management
Class ActiveMQTransportConnector

java.lang.Object
  extended by org.apache.geronimo.activemq.management.ActiveMQTransportConnector
All Implemented Interfaces:
ActiveMQConnector, JMSConnector, NetworkConnector

@GBean(name="ActiveMQ Transport Connector")
public class ActiveMQTransportConnector
extends Object
implements ActiveMQConnector

Version:
$Rev: 831537 $ $Date: 2009-10-31 21:30:18 +0800 (Sat, 31 Oct 2009) $

Field Summary
 
Fields inherited from interface org.apache.geronimo.activemq.ActiveMQConnector
CONNECTOR_J2EE_TYPE
 
Constructor Summary
ActiveMQTransportConnector(org.apache.activemq.broker.TransportConnector transportConnector)
           
 
Method Summary
 String getHost()
          Gets the hostname/IP that this connector listens on.
 InetSocketAddress getListenAddress()
          Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup.
 String getPath()
           
 int getPort()
          Gets the network port that this connector listens on.
 String getProtocol()
          Gets the network protocol that this connector handles.
 String getQuery()
           
 void setHost(String host)
          Sets the hostname/IP that this connector listens on.
 void setPath(String path)
           
 void setPort(int port)
          Sets the network port that this connector listens on.
 void setQuery(String query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveMQTransportConnector

public ActiveMQTransportConnector(@ParamAttribute(manageable=false,name="transportConnector")
                                  org.apache.activemq.broker.TransportConnector transportConnector)
Method Detail

getPath

public String getPath()
Specified by:
getPath in interface ActiveMQConnector

setPath

public void setPath(String path)
Specified by:
setPath in interface ActiveMQConnector

getQuery

public String getQuery()
Specified by:
getQuery in interface ActiveMQConnector

setQuery

public void setQuery(String query)
Specified by:
setQuery in interface ActiveMQConnector

getProtocol

public String getProtocol()
Gets the network protocol that this connector handles.

Specified by:
getProtocol in interface NetworkConnector

getPort

public int getPort()
Gets the network port that this connector listens on.

Specified by:
getPort in interface NetworkConnector

setPort

public void setPort(int port)
Sets the network port that this connector listens on.

Specified by:
setPort in interface NetworkConnector

getHost

public String getHost()
Gets the hostname/IP that this connector listens on.

Specified by:
getHost in interface NetworkConnector

setHost

public void setHost(String host)
             throws UnknownHostException
Sets the hostname/IP that this connector listens on. This is typically most useful for machines with multiple network cards, but can be used to limit a connector to only listen for connections from the local machine (127.0.0.1). To listen on all available network interfaces, specify an address of 0.0.0.0.

Specified by:
setHost in interface NetworkConnector
Throws:
UnknownHostException

getListenAddress

public InetSocketAddress getListenAddress()
Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup. However, this can be read-only since the host and port are set separately using setHost and setPort.

Specified by:
getListenAddress in interface NetworkConnector


Copyright © 2003-2010 The Apache Geronimo development community. All Rights Reserved.