org.apache.geronimo.activemq
Class TransportConnectorGBeanImpl

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

public class TransportConnectorGBeanImpl
extends Object
implements GBeanLifecycle, ActiveMQConnector

Default implementation of the ActiveMQ connector


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from interface org.apache.geronimo.activemq.ActiveMQConnector
CONNECTOR_J2EE_TYPE
 
Constructor Summary
TransportConnectorGBeanImpl(BrokerServiceGBean brokerServiceGBean, String protocol, String host, int port)
           
 
Method Summary
protected  org.apache.activemq.broker.TransportConnector createBrokerConnector(String url)
           
 void doFail()
           
 void doStart()
           
 void doStop()
           
 ClassLoader getClassLoader()
           
static GBeanInfo getGBeanInfo()
           
 String getHost()
           
 InetSocketAddress getListenAddress()
           
 String getPath()
           
 int getPort()
           
 String getProtocol()
           
 String getQuery()
           
 String getUrl()
           
 void setClassLoader(ClassLoader classLoader)
           
 void setHost(String host)
           
 void setPath(String path)
           
 void setPort(int port)
           
 void setProtocol(String protocol)
           
 void setQuery(String query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

TransportConnectorGBeanImpl

public TransportConnectorGBeanImpl(BrokerServiceGBean brokerServiceGBean,
                                   String protocol,
                                   String host,
                                   int port)
Method Detail

getProtocol

public String getProtocol()
Specified by:
getProtocol in interface NetworkConnector

setProtocol

public void setProtocol(String protocol)

getHost

public String getHost()
Specified by:
getHost in interface NetworkConnector

setHost

public void setHost(String host)
Specified by:
setHost in interface NetworkConnector

getPort

public int getPort()
Specified by:
getPort in interface NetworkConnector

setPort

public void setPort(int port)
Specified by:
setPort in interface NetworkConnector

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

getUrl

public String getUrl()

getListenAddress

public InetSocketAddress getListenAddress()
Specified by:
getListenAddress in interface NetworkConnector

doStart

public void doStart()
             throws Exception
Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface GBeanLifecycle

createBrokerConnector

protected org.apache.activemq.broker.TransportConnector createBrokerConnector(String url)
                                                                       throws Exception
Throws:
Exception

getClassLoader

public ClassLoader getClassLoader()

setClassLoader

public void setClassLoader(ClassLoader classLoader)

getGBeanInfo

public static GBeanInfo getGBeanInfo()


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