@InterfaceAudience.Private public class LoadBalancerTracker extends ZooKeeperNodeTracker
abortable, nodewatcher| 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, stopgetWatcher, nodeChildrenChangedpublic LoadBalancerTracker(ZooKeeperWatcher watcher, Abortable abortable)
public boolean isBalancerOn()
public void setBalancerOn(boolean balancerOn)
throws org.apache.zookeeper.KeeperException
balancerOn - org.apache.zookeeper.KeeperExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.