@InterfaceAudience.Private public class LoadBalancerTracker extends ZKNodeTracker
abortable, node
watcher
Constructor and Description |
---|
LoadBalancerTracker(ZKWatcher 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 boolean isBalancerOn()
public void setBalancerOn(boolean balancerOn) throws org.apache.zookeeper.KeeperException
balancerOn
- true if the balancher should be on, false otherwiseorg.apache.zookeeper.KeeperException
- if a ZooKeeper operation failsCopyright © 2007–2019 Cloudera. All rights reserved.