@InterfaceAudience.Private public class LoadBalancerTracker extends ZooKeeperNodeTracker
abortable, node
watcher
Constructor and Description |
---|
LoadBalancerTracker(ZooKeeperWatcher watcher,
Abortable abortable) |
Modifier and Type | Method and Description |
---|---|
boolean |
isBalancerOn()
Return true if the balance switch is on, false otherwise
|
void |
setBalancerOn(boolean balancerOn)
Set the balancer on/off
|
blockUntilAvailable, blockUntilAvailable, checkIfBaseNodeAvailable, getData, getNode, nodeCreated, nodeDataChanged, nodeDeleted, start, stop, toString
getWatcher, nodeChildrenChanged
public LoadBalancerTracker(ZooKeeperWatcher watcher, Abortable abortable)
public boolean isBalancerOn()
public void setBalancerOn(boolean balancerOn) throws org.apache.zookeeper.KeeperException
balancerOn
- org.apache.zookeeper.KeeperException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.