public class ManagedRegionBroker extends RegionBroker
brokerService, connectionStates, destinationFactory, destinationStatistics, ORIGINAL_EXPIRATION| Constructor and Description |
|---|
ManagedRegionBroker(BrokerService brokerService,
ManagementContext context,
ObjectName brokerObjectName,
TaskRunnerFactory taskRunnerFactory,
SystemUsage memoryManager,
DestinationFactory destinationFactory,
DestinationInterceptor destinationInterceptor,
Scheduler scheduler,
ThreadPoolExecutor executor) |
acknowledge, addBroker, addBrokerInClusterUpdate, addConnection, addDestination, addDestinationInfo, beginTransaction, brokerServiceStarted, commitTransaction, createUnknownDestinationTypeException, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getConnectionStates, getDestinationInterceptor, getDestinationMap, getDestinationPolicy, getDestinations, getDestinations, getDestinationStatistics, getDurableDestinations, getExecutor, getPeerBrokerInfos, getPreparedTransactions, getQueueRegion, getRoot, getScheduler, getTempDataStore, getTempQueueRegion, getTempTopicRegion, getTopicRegion, getVmConnectorURI, isAllowTempAutoCreationOnSend, isEqual, isExpired, isKeepDurableSubsActive, isSlaveBroker, isStopped, messageExpired, messagePull, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, purgeInactiveDestinations, removeBroker, removeBrokerInClusterUpdate, removeConnection, removeDestination, removeDestinationInfo, removeSubscription, rollbackTransaction, sendToDeadLetterQueue, setAdminConnectionContext, setAllowTempAutoCreationOnSend, setBrokerId, setBrokerName, setKeepDurableSubsActive, stopaddSession, fastProducer, isFaultTolerantConfiguration, isFull, messageConsumed, messageDelivered, messageDiscarded, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, removeSession, slowConsumerpublic ManagedRegionBroker(BrokerService brokerService, ManagementContext context, ObjectName brokerObjectName, TaskRunnerFactory taskRunnerFactory, SystemUsage memoryManager, DestinationFactory destinationFactory, DestinationInterceptor destinationInterceptor, Scheduler scheduler, ThreadPoolExecutor executor) throws IOException
IOExceptionpublic void start() throws Exception
start in interface Servicestart in class RegionBrokerExceptionprotected void doStop(ServiceStopper stopper)
doStop in class RegionBrokerprotected Region createQueueRegion(SystemUsage memoryManager, TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory)
createQueueRegion in class RegionBrokerprotected Region createTempQueueRegion(SystemUsage memoryManager, TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory)
createTempQueueRegion in class RegionBrokerprotected Region createTempTopicRegion(SystemUsage memoryManager, TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory)
createTempTopicRegion in class RegionBrokerprotected Region createTopicRegion(SystemUsage memoryManager, TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory)
createTopicRegion in class RegionBrokerpublic void register(ActiveMQDestination destName, Destination destination)
public void unregister(ActiveMQDestination destName)
public ObjectName registerSubscription(ConnectionContext context, Subscription sub)
public static String getSubscriptionObjectName(ConsumerInfo info, String connectionClientId, ObjectName brokerJmxObjectName)
public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception
RegionaddConsumer in interface RegionaddConsumer in class RegionBrokercontext - the environment the operation is being executed under.Exception - TODOpublic void removeConsumer(ConnectionContext context, ConsumerInfo info) throws Exception
RegionremoveConsumer in interface RegionremoveConsumer in class RegionBrokercontext - the environment the operation is being executed under.Exception - TODOpublic void addProducer(ConnectionContext context, ProducerInfo info) throws Exception
BrokeraddProducer in interface BrokeraddProducer in interface RegionaddProducer in class RegionBrokercontext - the enviorment the operation is being executed under.Exception - TODOpublic void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception
BrokerremoveProducer in interface BrokerremoveProducer in interface RegionremoveProducer in class RegionBrokercontext - the enviorment the operation is being executed under.Exception - TODOpublic void send(ProducerBrokerExchange exchange, Message message) throws Exception
Regionsend in interface Regionsend in class RegionBrokerexchange - the environment the operation is being executed under.Exception - TODOpublic void unregisterSubscription(Subscription sub)
protected void registerDestination(ObjectName key, ActiveMQDestination dest, DestinationView view) throws Exception
Exceptionprotected void unregisterDestination(ObjectName key) throws Exception
Exceptionprotected void registerProducer(ObjectName key, ActiveMQDestination dest, ProducerView view) throws Exception
Exceptionprotected void unregisterProducer(ObjectName key) throws Exception
Exceptionprotected void registerSubscription(ObjectName key, ConsumerInfo info, SubscriptionKey subscriptionKey, SubscriptionView view) throws Exception
Exceptionprotected void unregisterSubscription(ObjectName key, boolean addToInactive) throws Exception
Exceptionprotected void buildExistingSubscriptions() throws Exception
Exceptionprotected void addInactiveSubscription(SubscriptionKey key, SubscriptionInfo info, Subscription subscription)
public CompositeData[] browse(SubscriptionView view) throws OpenDataException
OpenDataExceptionpublic TabularData browseAsTable(SubscriptionView view) throws OpenDataException
OpenDataExceptionprotected List<Message> getSubscriberMessages(SubscriptionView view)
protected ObjectName[] getTopics()
protected ObjectName[] getQueues()
protected ObjectName[] getTemporaryTopics()
protected ObjectName[] getTemporaryQueues()
protected ObjectName[] getTopicSubscribers()
protected ObjectName[] getDurableTopicSubscribers()
protected ObjectName[] getQueueSubscribers()
protected ObjectName[] getTemporaryTopicSubscribers()
protected ObjectName[] getTemporaryQueueSubscribers()
protected ObjectName[] getInactiveDurableTopicSubscribers()
protected ObjectName[] getTopicProducers()
protected ObjectName[] getQueueProducers()
protected ObjectName[] getTemporaryTopicProducers()
protected ObjectName[] getTemporaryQueueProducers()
protected ObjectName[] getDynamicDestinationProducers()
public Broker getContextBroker()
public void setContextBroker(Broker contextBroker)
protected ObjectName createObjectName(ActiveMQDestination destName) throws MalformedObjectNameException
MalformedObjectNameExceptionprotected ObjectName createObjectName(ProducerInfo producerInfo, String connectionClientId) throws MalformedObjectNameException
MalformedObjectNameExceptionpublic ObjectName registerSlowConsumerStrategy(AbortSlowConsumerStrategy strategy) throws MalformedObjectNameException
MalformedObjectNameExceptionprotected ObjectName createObjectName(XATransaction transaction) throws MalformedObjectNameException
MalformedObjectNameExceptionpublic void registerRecoveredTransactionMBean(XATransaction transaction)
public void unregister(XATransaction transaction)
public ObjectName getSubscriberObjectName(Subscription key)
public Subscription getSubscriber(ObjectName key)
Copyright © 2005–2017. All rights reserved.