@InterfaceAudience.Private public class LoadBalancerTracker extends ZooKeeperNodeTracker
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
LOG |
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
|
private org.apache.hadoop.hbase.protobuf.generated.LoadBalancerProtos.LoadBalancerState |
parseFrom(byte[] pbBytes) |
void |
setBalancerOn(boolean balancerOn)
Set the balancer on/off
|
private byte[] |
toByteArray(boolean isBalancerOn) |
blockUntilAvailable, blockUntilAvailable, checkIfBaseNodeAvailable, getData, getNode, nodeCreated, nodeDataChanged, nodeDeleted, start, stop, toStringgetWatcher, nodeChildrenChangedpublic LoadBalancerTracker(ZooKeeperWatcher watcher, Abortable abortable)
public boolean isBalancerOn()
public void setBalancerOn(boolean balancerOn)
throws org.apache.zookeeper.KeeperException
balancerOn - org.apache.zookeeper.KeeperExceptionprivate byte[] toByteArray(boolean isBalancerOn)
private org.apache.hadoop.hbase.protobuf.generated.LoadBalancerProtos.LoadBalancerState parseFrom(byte[] pbBytes)
throws DeserializationException
DeserializationExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.