@InterfaceAudience.Private public class LoadBalancerTracker extends ZKNodeTracker
abortable, nodewatcher| 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, toStringgetWatcher, nodeChildrenChangedpublic 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–2020 The Apache Software Foundation. All rights reserved.