public class ZooKeeperPartitionBroker extends PartitionBroker
Modifier and Type | Field and Description |
---|---|
protected Partitioning |
config |
protected CountDownLatch |
configAcquired |
protected static Logger |
LOG |
protected ZKClient |
zk_client |
monitors, plugin, reloadConfigOnPoll
next
Constructor and Description |
---|
ZooKeeperPartitionBroker(Broker broker,
ZooKeeperPartitionBrokerPlugin plugin) |
Modifier and Type | Method and Description |
---|---|
protected Partitioning |
getConfig() |
protected void |
onMonitorStop() |
protected ZooKeeperPartitionBrokerPlugin |
plugin() |
protected void |
reloadConfiguration() |
void |
start() |
protected void |
zkConnect() |
protected void |
zkDisconnect() |
addConnection, checkTarget, getConnectionString, getTarget, monitorWait, monitorWakeup, onMonitorStart, pickBestBroker, removeConnection, runPartitionMonitor, send
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 volatile Partitioning config
protected final CountDownLatch configAcquired
public ZooKeeperPartitionBroker(Broker broker, ZooKeeperPartitionBrokerPlugin plugin)
public void start() throws Exception
start
in interface Service
start
in class PartitionBroker
Exception
protected void onMonitorStop()
onMonitorStop
in class PartitionBroker
protected Partitioning getConfig()
getConfig
in class PartitionBroker
protected ZooKeeperPartitionBrokerPlugin plugin()
protected void zkDisconnect()
protected void reloadConfiguration() throws Exception
reloadConfiguration
in class PartitionBroker
Exception
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.