org.apache.hadoop.hbase.zookeeper
Class LoadBalancerTracker
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker
org.apache.hadoop.hbase.zookeeper.LoadBalancerTracker
@InterfaceAudience.Private
public class LoadBalancerTracker
- extends ZooKeeperNodeTracker
Tracks the load balancer state up in ZK
Method Summary |
boolean |
isBalancerOn()
Return true if the balance switch is on, false otherwise |
void |
setBalancerOn(boolean balancerOn)
Set the balancer on/off |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadBalancerTracker
public LoadBalancerTracker(ZooKeeperWatcher watcher,
Abortable abortable)
isBalancerOn
public boolean isBalancerOn()
- Return true if the balance switch is on, false otherwise
setBalancerOn
public void setBalancerOn(boolean balancerOn)
throws org.apache.zookeeper.KeeperException
- Set the balancer on/off
- Parameters:
balancerOn
-
- Throws:
org.apache.zookeeper.KeeperException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.