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)
A client is establishing a connection with the broker.
|
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)
A client is disconnecting from the broker.
|
protected void |
runPartitionMonitor() |
void |
send(ProducerBrokerExchange producerExchange,
Message messageSend)
Send a message to the broker to using the specified destination.
|
void |
start() |
acknowledge, addBroker, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, 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
BrokeraddConnection in interface BrokeraddConnection in class BrokerFilterjava.lang.Exception - TODOpublic void removeConnection(ConnectionContext context, ConnectionInfo info, java.lang.Throwable error) throws java.lang.Exception
BrokerremoveConnection in interface BrokerremoveConnection in class BrokerFiltercontext - 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.java.lang.Exception - TODOpublic void send(ProducerBrokerExchange producerExchange, Message messageSend) throws java.lang.Exception
Regionsend in interface Regionsend in class BrokerFilterproducerExchange - the environment the operation is being executed under.java.lang.Exception - TODOprotected Partitioning getConfig()
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.