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, addDestination, addDestinationInfo, beginTransaction, brokerServiceStarted, commitTransaction, createUnknownDestinationTypeException, forgetTransaction, gc, getAdaptor, 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, 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 void addConnection(ConnectionContext context, ConnectionInfo info) throws Exception
BrokeraddConnection in interface BrokeraddConnection in class RegionBrokerException - TODOpublic void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception
BrokerremoveConnection in interface BrokerremoveConnection in class RegionBrokercontext - the environment the operation is being executed under.error - null if the client requested the disconnect or the error
                that caused the client to disconnect.Exception - TODOpublic 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
OpenDataExceptionpublic void remove(SubscriptionView view, String messageId) throws Exception
Exceptionprotected 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)
public ObjectName registerSlowConsumerStrategy(AbortSlowConsumerStrategy strategy) throws MalformedObjectNameException
MalformedObjectNameExceptionpublic void registerRecoveredTransactionMBean(XATransaction transaction)
public void unregister(XATransaction transaction)
public ObjectName getSubscriberObjectName(Subscription key)
public Subscription getSubscriber(ObjectName key)
public Map<ObjectName,DestinationView> getQueueViews()
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.