public class PartitionBroker extends BrokerFilter
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOG |
protected ConcurrentMap<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 String |
getConnectionString(HashSet<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,
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, 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 final PartitionBrokerPlugin plugin
protected boolean reloadConfigOnPoll
protected final ConcurrentMap<ConnectionId,org.apache.activemq.partition.PartitionBroker.ConnectionMonitor> monitors
public PartitionBroker(Broker broker, PartitionBrokerPlugin plugin)
public void start() throws Exception
start in interface 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)
protected Target getTarget(ActiveMQDestination dest)
public void addConnection(ConnectionContext context, ConnectionInfo info) throws Exception
BrokeraddConnection in interface BrokeraddConnection in class BrokerFilterException - TODOpublic void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws 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.Exception - TODOpublic void send(ProducerBrokerExchange producerExchange, Message messageSend) throws Exception
Regionsend in interface Regionsend in class BrokerFilterproducerExchange - the environment the operation is being executed under.Exception - TODOprotected Partitioning getConfig()
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.