public class PartitionBroker extends BrokerFilter
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
protected java.util.concurrent.ConcurrentHashMap<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,
ConnectionInfo info) |
protected void |
checkTarget(org.apache.activemq.partition.PartitionBroker.ConnectionMonitor monitor) |
protected Partitioning |
getConfig() |
protected java.lang.String |
getConnectionString(java.util.HashSet<java.lang.String> ids) |
protected Target |
getTarget(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,
ConnectionInfo info,
java.lang.Throwable error) |
protected void |
runPartitionMonitor() |
void |
send(ProducerBrokerExchange producerExchange,
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, 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, stopprotected static final org.slf4j.Logger LOG
protected final PartitionBrokerPlugin plugin
protected boolean reloadConfigOnPoll
protected final java.util.concurrent.ConcurrentHashMap<ConnectionId,org.apache.activemq.partition.PartitionBroker.ConnectionMonitor> monitors
public PartitionBroker(Broker broker, PartitionBrokerPlugin plugin)
public void start()
throws java.lang.Exception
start in interface Servicestart in class BrokerFilterjava.lang.Exceptionprotected void onMonitorStart()
protected void onMonitorStop()
protected void runPartitionMonitor()
protected void monitorWait()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected void monitorWakeup()
protected void reloadConfiguration()
throws java.lang.Exception
java.lang.Exceptionprotected void checkTarget(org.apache.activemq.partition.PartitionBroker.ConnectionMonitor monitor)
protected java.lang.String getConnectionString(java.util.HashSet<java.lang.String> ids)
protected Target pickBestBroker(org.apache.activemq.partition.PartitionBroker.ConnectionMonitor monitor)
protected Target getTarget(ActiveMQDestination dest)
public void addConnection(ConnectionContext context, ConnectionInfo info) throws java.lang.Exception
addConnection in interface BrokeraddConnection in class BrokerFilterjava.lang.Exceptionpublic void removeConnection(ConnectionContext context, ConnectionInfo info, java.lang.Throwable error) throws java.lang.Exception
removeConnection in interface BrokerremoveConnection in class BrokerFilterjava.lang.Exceptionpublic void send(ProducerBrokerExchange producerExchange, Message messageSend) throws java.lang.Exception
send in interface Regionsend in class BrokerFilterjava.lang.Exceptionprotected Partitioning getConfig()
Copyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.