Package org.apache.activemq.broker.jmx
Class ManagedRegionBroker
java.lang.Object
org.apache.activemq.broker.EmptyBroker
org.apache.activemq.broker.region.RegionBroker
org.apache.activemq.broker.jmx.ManagedRegionBroker
-
Field Summary
Fields inherited from class org.apache.activemq.broker.region.RegionBroker
brokerService, connectionStates, destinationFactory, destinationStatistics, ORIGINAL_EXPIRATION -
Constructor Summary
ConstructorsConstructorDescriptionManagedRegionBroker(BrokerService brokerService, ManagementContext context, ObjectName brokerObjectName, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, SystemUsage memoryManager, DestinationFactory destinationFactory, DestinationInterceptor destinationInterceptor, org.apache.activemq.thread.Scheduler scheduler, ThreadPoolExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConnection(ConnectionContext context, org.apache.activemq.command.ConnectionInfo info) A client is establishing a connection with the broker.addConsumer(ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) Adds a consumer.protected voidaddInactiveSubscription(SubscriptionKey key, org.apache.activemq.command.SubscriptionInfo info, Subscription subscription) voidaddProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) Adds a producer.browse(SubscriptionView view) protected voidprotected RegioncreateQueueRegion(SystemUsage memoryManager, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory) protected RegioncreateTempQueueRegion(SystemUsage memoryManager, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory) protected RegioncreateTempTopicRegion(SystemUsage memoryManager, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory) protected RegioncreateTopicRegion(SystemUsage memoryManager, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory) protected voiddoStop(org.apache.activemq.util.ServiceStopper stopper) protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]getQueueView(String queueName) getSubscriber(ObjectName key) protected org.apache.activemq.command.Message[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]protected ObjectName[]voidregister(org.apache.activemq.command.ActiveMQDestination destName, Destination destination) protected voidregisterDestination(ObjectName key, org.apache.activemq.command.ActiveMQDestination dest, DestinationView view) protected voidregisterProducer(ObjectName key, org.apache.activemq.command.ActiveMQDestination dest, ProducerView view) voidregisterRecoveredTransactionMBean(XATransaction transaction) protected voidregisterSubscription(ObjectName key, org.apache.activemq.command.ConsumerInfo info, SubscriptionKey subscriptionKey, SubscriptionView view) registerSubscription(ConnectionContext context, Subscription sub) voidremove(SubscriptionView view, String messageId) voidremoveConnection(ConnectionContext context, org.apache.activemq.command.ConnectionInfo info, Throwable error) A client is disconnecting from the broker.voidremoveConsumer(ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) Removes a consumer.voidremoveProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) Removes a producer.voidsend(ProducerBrokerExchange exchange, org.apache.activemq.command.Message message) Send a message to the broker to using the specified destination.voidsetContextBroker(Broker contextBroker) voidstart()voidunregister(org.apache.activemq.command.ActiveMQDestination destName) voidunregister(XATransaction transaction) protected voidprotected voidprotected voidunregisterSubscription(ObjectName key, boolean addToInactive) voidMethods inherited from class org.apache.activemq.broker.region.RegionBroker
acknowledge, addBroker, addBrokerInClusterUpdate, addDestination, addDestinationInfo, beginTransaction, brokerServiceStarted, commitTransaction, createUnknownDestinationTypeException, forgetTransaction, gc, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getConnectionContext, getConnectionStates, getDestinationInterceptor, getDestinationMap, getDestinationMap, getDestinationPolicy, getDestinations, getDestinations, getDestinationStatistics, getDurableDestinations, getExecutor, getPeerBrokerInfos, getPreparedTransactions, getQueueRegion, getRegion, getRoot, getScheduler, getTempDataStore, getTempQueueRegion, getTempTopicRegion, getTopicRegion, getVmConnectorURI, isAllowTempAutoCreationOnSend, isEqual, isExpired, isKeepDurableSubsActive, isStopped, messageExpired, messagePull, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, purgeInactiveDestinations, reapplyInterceptor, removeBroker, removeBrokerInClusterUpdate, removeDestination, removeDestinationInfo, removeSubscription, rollbackTransaction, sendToDeadLetterQueue, setAdminConnectionContext, setAllowTempAutoCreationOnSend, setBrokerId, setBrokerName, setKeepDurableSubsActive, stopMethods inherited from class org.apache.activemq.broker.EmptyBroker
addSession, fastProducer, getAdaptor, isFaultTolerantConfiguration, isFull, messageConsumed, messageDelivered, messageDiscarded, messageDispatched, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, removeSession, slowConsumer, virtualDestinationAdded, virtualDestinationRemoved
-
Constructor Details
-
ManagedRegionBroker
public ManagedRegionBroker(BrokerService brokerService, ManagementContext context, ObjectName brokerObjectName, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, SystemUsage memoryManager, DestinationFactory destinationFactory, DestinationInterceptor destinationInterceptor, org.apache.activemq.thread.Scheduler scheduler, ThreadPoolExecutor executor) throws IOException - Throws:
IOException
-
-
Method Details
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Overrides:
startin classRegionBroker- Throws:
Exception
-
doStop
protected void doStop(org.apache.activemq.util.ServiceStopper stopper) - Overrides:
doStopin classRegionBroker
-
createQueueRegion
protected Region createQueueRegion(SystemUsage memoryManager, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory) - Overrides:
createQueueRegionin classRegionBroker
-
createTempQueueRegion
protected Region createTempQueueRegion(SystemUsage memoryManager, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory) - Overrides:
createTempQueueRegionin classRegionBroker
-
createTempTopicRegion
protected Region createTempTopicRegion(SystemUsage memoryManager, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory) - Overrides:
createTempTopicRegionin classRegionBroker
-
createTopicRegion
protected Region createTopicRegion(SystemUsage memoryManager, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory) - Overrides:
createTopicRegionin classRegionBroker
-
register
public void register(org.apache.activemq.command.ActiveMQDestination destName, Destination destination) -
unregister
public void unregister(org.apache.activemq.command.ActiveMQDestination destName) -
registerSubscription
-
addConnection
public void addConnection(ConnectionContext context, org.apache.activemq.command.ConnectionInfo info) throws Exception Description copied from interface:BrokerA client is establishing a connection with the broker.- Specified by:
addConnectionin interfaceBroker- Overrides:
addConnectionin classRegionBroker- Throws:
Exception- TODO
-
removeConnection
public void removeConnection(ConnectionContext context, org.apache.activemq.command.ConnectionInfo info, Throwable error) throws Exception Description copied from interface:BrokerA client is disconnecting from the broker.- Specified by:
removeConnectionin interfaceBroker- Overrides:
removeConnectionin classRegionBroker- Parameters:
context- the environment the operation is being executed under.info- metadata about the Brokererror- null if the client requested the disconnect or the error that caused the client to disconnect.- Throws:
Exception- TODO
-
addConsumer
public Subscription addConsumer(ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) throws Exception Description copied from interface:RegionAdds a consumer.- Specified by:
addConsumerin interfaceRegion- Overrides:
addConsumerin classRegionBroker- Parameters:
context- the environment the operation is being executed under.- Returns:
- TODO
- Throws:
Exception- TODO
-
removeConsumer
public void removeConsumer(ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) throws Exception Description copied from interface:RegionRemoves a consumer.- Specified by:
removeConsumerin interfaceRegion- Overrides:
removeConsumerin classRegionBroker- Parameters:
context- the environment the operation is being executed under.- Throws:
Exception- TODO
-
addProducer
public void addProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) throws Exception Description copied from interface:BrokerAdds a producer.- Specified by:
addProducerin interfaceBroker- Specified by:
addProducerin interfaceRegion- Overrides:
addProducerin classRegionBroker- Parameters:
context- the environment the operation is being executed under.- Throws:
Exception- TODO
-
removeProducer
public void removeProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) throws Exception Description copied from interface:BrokerRemoves a producer.- Specified by:
removeProducerin interfaceBroker- Specified by:
removeProducerin interfaceRegion- Overrides:
removeProducerin classRegionBroker- Parameters:
context- the environment the operation is being executed under.- Throws:
Exception- TODO
-
send
public void send(ProducerBrokerExchange exchange, org.apache.activemq.command.Message message) throws Exception Description copied from interface:RegionSend a message to the broker to using the specified destination. The destination specified in the message does not need to match the destination the message is sent to. This is handy in case the message is being sent to a dead letter destination.- Specified by:
sendin interfaceRegion- Overrides:
sendin classRegionBroker- Parameters:
exchange- the environment the operation is being executed under.- Throws:
Exception- TODO
-
unregisterSubscription
-
registerDestination
protected void registerDestination(ObjectName key, org.apache.activemq.command.ActiveMQDestination dest, DestinationView view) throws Exception - Throws:
Exception
-
unregisterDestination
- Throws:
Exception
-
registerProducer
protected void registerProducer(ObjectName key, org.apache.activemq.command.ActiveMQDestination dest, ProducerView view) throws Exception - Throws:
Exception
-
unregisterProducer
- Throws:
Exception
-
registerSubscription
protected void registerSubscription(ObjectName key, org.apache.activemq.command.ConsumerInfo info, SubscriptionKey subscriptionKey, SubscriptionView view) throws Exception - Throws:
Exception
-
unregisterSubscription
- Throws:
Exception
-
buildExistingSubscriptions
- Throws:
Exception
-
addInactiveSubscription
protected void addInactiveSubscription(SubscriptionKey key, org.apache.activemq.command.SubscriptionInfo info, Subscription subscription) -
browse
- Throws:
OpenDataException
-
browseAsTable
- Throws:
OpenDataException
-
remove
- Throws:
Exception
-
getSubscriberMessages
-
getTopics
-
getTopicsNonSuppressed
-
getQueues
-
getQueuesNonSuppressed
-
getTemporaryTopics
-
getTemporaryTopicsNonSuppressed
-
getTemporaryQueues
-
getTemporaryQueuesNonSuppressed
-
getTopicSubscribers
-
getTopicSubscribersNonSuppressed
-
getDurableTopicSubscribers
-
getDurableTopicSubscribersNonSuppressed
-
getQueueSubscribers
-
getQueueSubscribersNonSuppressed
-
getTemporaryTopicSubscribers
-
getTemporaryTopicSubscribersNonSuppressed
-
getTemporaryQueueSubscribers
-
getTemporaryQueueSubscribersNonSuppressed
-
getInactiveDurableTopicSubscribers
-
getInactiveDurableTopicSubscribersNonSuppressed
-
getTopicProducers
-
getTopicProducersNonSuppressed
-
getQueueProducers
-
getQueueProducersNonSuppressed
-
getTemporaryTopicProducers
-
getTemporaryTopicProducersNonSuppressed
-
getTemporaryQueueProducers
-
getTemporaryQueueProducersNonSuppressed
-
getDynamicDestinationProducers
-
getDynamicDestinationProducersNonSuppressed
-
getContextBroker
-
setContextBroker
-
registerSlowConsumerStrategy
public ObjectName registerSlowConsumerStrategy(AbortSlowConsumerStrategy strategy) throws MalformedObjectNameException - Throws:
MalformedObjectNameException
-
registerRecoveredTransactionMBean
-
unregister
-
getSubscriberObjectName
-
getSubscriber
-
getQueueViews
-
getTopicViews
-
getQueueView
- Throws:
MalformedObjectNameException
-
getRegisteredMbeans
-