public class ActiveMQBroker extends Object implements ConfigurableBroker, MonitorableBroker
| Constructor and Description |
|---|
ActiveMQBroker(org.osgi.framework.BundleContext bc) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateBroker()
starts ActiveMQ broker.
|
void |
deactivateBroker()
stops ActiveMQ broker.
|
String |
getBrokerName() |
Set<BrokerQueue> |
getBrokerQueues() |
MessageHandlerMQConsumer[] |
getMessageHandlerConsumers() |
void |
initBrokerInstance()
is invoked by OSGi.
|
void |
invalidateBrokerInstance()
is invoked by OSGi.
|
boolean |
isActive() |
public ActiveMQBroker(org.osgi.framework.BundleContext bc)
bc - bundle contextpublic void activateBroker()
throws Exception
activateBroker in interface ConfigurableBrokerException - the exceptionpublic void deactivateBroker()
throws Exception
deactivateBroker in interface ConfigurableBrokerException - the exceptionpublic String getBrokerName() throws MessageQueueJmxException
getBrokerName in interface MonitorableBrokerMessageQueueJmxExceptionpublic Set<BrokerQueue> getBrokerQueues() throws MessageQueueJmxException
getBrokerQueues in interface MonitorableBrokerMessageQueueJmxExceptionpublic MessageHandlerMQConsumer[] getMessageHandlerConsumers() throws MessageQueueJmxException
getMessageHandlerConsumers in interface MonitorableBrokerMessageQueueJmxExceptionpublic void initBrokerInstance()
throws Exception
Exception - exceptionpublic void invalidateBrokerInstance()
throws Exception
Exception - exceptionpublic boolean isActive()
isActive in interface ConfigurableBrokerisActive in interface MonitorableBrokerCopyright © 2019 Communote team. All rights reserved.