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, stop
protected 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 Service
start
in class BrokerFilter
Exception
protected void onMonitorStart()
protected void onMonitorStop()
protected void runPartitionMonitor()
protected void monitorWait() throws InterruptedException
InterruptedException
protected void monitorWakeup()
protected void reloadConfiguration() throws Exception
Exception
protected 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
Broker
addConnection
in interface Broker
addConnection
in class BrokerFilter
Exception
- TODOpublic void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception
Broker
removeConnection
in interface Broker
removeConnection
in class BrokerFilter
context
- 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
Region
send
in interface Region
send
in class BrokerFilter
producerExchange
- the environment the operation is being executed under.Exception
- TODOprotected Partitioning getConfig()
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.