@InterfaceAudience.Private public class LoadBalancerTracker extends ZKNodeTracker
abortable, nodewatcher| 构造器和说明 |
|---|
LoadBalancerTracker(ZKWatcher watcher,
Abortable abortable) |
| 限定符和类型 | 方法和说明 |
|---|---|
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–2018 The Apache Software Foundation. All rights reserved.