org.apache.geronimo.activemq
Class BrokerServiceGBeanImpl
java.lang.Object
org.apache.geronimo.activemq.BrokerServiceGBeanImpl
- All Implemented Interfaces:
- ActiveMQBroker, BrokerServiceGBean, GBeanLifecycle, JMSBroker, NetworkContainer, J2EEManagedObject
@GBean(j2eeType="JMSServer")
public class BrokerServiceGBeanImpl
- extends Object
- implements BrokerServiceGBean, GBeanLifecycle
Default implementation of the ActiveMQ Message Server
- Version:
- $Rev: 1026410 $ $Date: 2010-10-23 01:15:36 +0800 (Sat, 23 Oct 2010) $
|
Constructor Summary |
BrokerServiceGBeanImpl(String brokerName,
URI amqBaseDir,
String amqDataDir,
String amqConfigFile,
boolean useShutdownHook,
boolean asyncStartup,
int asyncStartupDelay,
ServerInfo serverInfo,
MBeanServerReference mbeanServerReference,
String objectName,
ClassLoader classLoader)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrokerServiceGBeanImpl
public BrokerServiceGBeanImpl(@ParamAttribute(name="brokerName")
String brokerName,
@ParamAttribute(name="amqBaseDir")
URI amqBaseDir,
@ParamAttribute(name="amqDataDir")
String amqDataDir,
@ParamAttribute(name="amqConfigFile")
String amqConfigFile,
@ParamAttribute(name="useShutdownHook")
boolean useShutdownHook,
@ParamAttribute(name="asyncStartup")
boolean asyncStartup,
@ParamAttribute(name="asyncStartupDelay")
int asyncStartupDelay,
@ParamReference(name="ServerInfo")
ServerInfo serverInfo,
@ParamReference(name="MBeanServerReference")
MBeanServerReference mbeanServerReference,
@ParamSpecial(type=objectName)
String objectName,
@ParamSpecial(type=classLoader)
ClassLoader classLoader)
throws Exception
- Throws:
Exception
getBrokerContainer
public org.apache.activemq.broker.BrokerService getBrokerContainer()
- Specified by:
getBrokerContainer in interface BrokerServiceGBean
getBrokerName
public String getBrokerName()
- Specified by:
getBrokerName in interface BrokerServiceGBean
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
getObjectName
public String getObjectName()
- Gets the unique name of this object. The object name must comply with the ObjectName specification
in the JMX specification and the restrictions in the J2EEManagementInterface.
- Specified by:
getObjectName in interface J2EEManagedObject
- Returns:
- the unique name of this object within the server
isStateManageable
public boolean isStateManageable()
- Specified by:
isStateManageable in interface J2EEManagedObject
isStatisticsProvider
public boolean isStatisticsProvider()
- Specified by:
isStatisticsProvider in interface J2EEManagedObject
isEventProvider
public boolean isEventProvider()
- Specified by:
isEventProvider in interface J2EEManagedObject
getConnectors
public NetworkConnector[] getConnectors()
- Specified by:
getConnectors in interface NetworkContainer
getConnectors
public NetworkConnector[] getConnectors(String protocol)
- Specified by:
getConnectors in interface NetworkContainer
getManager
public JMSManager getManager()
setManager
public void setManager(JMSManager manager)
Copyright © 2003-2010 The Apache Geronimo development community. All Rights Reserved.