public class PartitionBroker extends BrokerFilter
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOG |
protected ConcurrentMap<org.apache.activemq.command.ConnectionId,org.apache.activemq.partition.PartitionBroker.ConnectionMonitor> |
monitors |
protected PartitionBrokerPlugin |
plugin |
protected boolean |
reloadConfigOnPoll |
next| Constructor and Description |
|---|
PartitionBroker(Broker broker,
PartitionBrokerPlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnection(ConnectionContext context,
org.apache.activemq.command.ConnectionInfo info) |
protected void |
checkTarget(org.apache.activemq.partition.PartitionBroker.ConnectionMonitor monitor) |
protected Partitioning |
getConfig() |
protected String |
getConnectionString(HashSet<String> ids) |
protected Target |
getTarget(org.apache.activemq.command.ActiveMQDestination dest) |
protected void |
monitorWait() |
protected void |
monitorWakeup() |
protected void |
onMonitorStart() |
protected void |
onMonitorStop() |
protected Target |
pickBestBroker(org.apache.activemq.partition.PartitionBroker.ConnectionMonitor monitor) |
protected void |
reloadConfiguration() |
void |
removeConnection(ConnectionContext context,
org.apache.activemq.command.ConnectionInfo info,
Throwable error) |
protected void |
runPartitionMonitor() |
void |
send(ProducerBrokerExchange producerExchange,
org.apache.activemq.command.Message messageSend) |
void |
start() |
acknowledge, addBroker, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getNext, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, stop, virtualDestinationAdded, virtualDestinationRemovedprotected final PartitionBrokerPlugin plugin
protected boolean reloadConfigOnPoll
protected final ConcurrentMap<org.apache.activemq.command.ConnectionId,org.apache.activemq.partition.PartitionBroker.ConnectionMonitor> monitors
public PartitionBroker(Broker broker, PartitionBrokerPlugin plugin)
public void start() throws Exception
start in interface org.apache.activemq.Servicestart in class BrokerFilterExceptionprotected void onMonitorStart()
protected void onMonitorStop()
protected void runPartitionMonitor()
protected void monitorWait() throws InterruptedException
InterruptedExceptionprotected void monitorWakeup()
protected void reloadConfiguration() throws Exception
Exceptionprotected void checkTarget(org.apache.activemq.partition.PartitionBroker.ConnectionMonitor monitor)
protected String getConnectionString(HashSet<String> ids)
protected Target pickBestBroker(org.apache.activemq.partition.PartitionBroker.ConnectionMonitor monitor)
public void addConnection(ConnectionContext context, org.apache.activemq.command.ConnectionInfo info) throws Exception
addConnection in interface BrokeraddConnection in class BrokerFilterExceptionpublic void removeConnection(ConnectionContext context, org.apache.activemq.command.ConnectionInfo info, Throwable error) throws Exception
removeConnection in interface BrokerremoveConnection in class BrokerFilterExceptionpublic void send(ProducerBrokerExchange producerExchange, org.apache.activemq.command.Message messageSend) throws Exception
send in interface Regionsend in class BrokerFilterExceptionprotected Partitioning getConfig()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.