|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.activemq.TransportConnectorGBeanImpl
public class TransportConnectorGBeanImpl
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()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
ClassLoader |
getClassLoader()
|
static GBeanInfo |
getGBeanInfo()
|
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()
|
String |
getUrl()
|
void |
setClassLoader(ClassLoader classLoader)
|
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 |
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 |
|---|
public static final GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public TransportConnectorGBeanImpl(BrokerServiceGBean brokerServiceGBean,
String protocol,
String host,
int port)
| Method Detail |
|---|
public String getProtocol()
NetworkConnector
getProtocol in interface NetworkConnectorpublic void setProtocol(String protocol)
public String getHost()
NetworkConnector
getHost in interface NetworkConnectorpublic void setHost(String host)
NetworkConnector
setHost in interface NetworkConnectorpublic int getPort()
NetworkConnector
getPort in interface NetworkConnectorpublic void setPort(int port)
NetworkConnector
setPort in interface NetworkConnectorpublic String getPath()
getPath in interface ActiveMQConnectorpublic void setPath(String path)
setPath in interface ActiveMQConnectorpublic String getQuery()
getQuery in interface ActiveMQConnectorpublic void setQuery(String query)
setQuery in interface ActiveMQConnectorpublic String getUrl()
public InetSocketAddress getListenAddress()
NetworkConnector
getListenAddress in interface NetworkConnector
public void doStart()
throws Exception
GBeanLifecycle
doStart in interface GBeanLifecycleException - if the target failed to start; this will cause a transition to the failed state
public void doStop()
throws Exception
GBeanLifecycle
doStop in interface GBeanLifecycleException - if the target failed to stop; this will cause a transition to the failed statepublic void doFail()
GBeanLifecycle
doFail in interface GBeanLifecycle
protected org.apache.activemq.broker.TransportConnector createBrokerConnector(String url)
throws Exception
Exceptionpublic ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public static GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||