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 ConfigurableBroker
Exception
- the exceptionpublic void deactivateBroker() throws Exception
deactivateBroker
in interface ConfigurableBroker
Exception
- the exceptionpublic String getBrokerName() throws MessageQueueJmxException
getBrokerName
in interface MonitorableBroker
MessageQueueJmxException
public Set<BrokerQueue> getBrokerQueues() throws MessageQueueJmxException
getBrokerQueues
in interface MonitorableBroker
MessageQueueJmxException
public MessageHandlerMQConsumer[] getMessageHandlerConsumers() throws MessageQueueJmxException
getMessageHandlerConsumers
in interface MonitorableBroker
MessageQueueJmxException
public void initBrokerInstance() throws Exception
Exception
- exceptionpublic void invalidateBrokerInstance() throws Exception
Exception
- exceptionpublic boolean isActive()
isActive
in interface ConfigurableBroker
isActive
in interface MonitorableBroker
Copyright © 2019 Communote team. All rights reserved.