@InterfaceAudience.Private public class LoadBalancerTracker extends ZKNodeTracker
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
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
|
private org.apache.hadoop.hbase.shaded.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, postStart, start, stop, toStringgetWatcher, nodeChildrenChangedprivate static final org.slf4j.Logger LOG
public LoadBalancerTracker(ZKWatcher watcher, Abortable abortable)
public 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 failsprivate byte[] toByteArray(boolean isBalancerOn)
private org.apache.hadoop.hbase.shaded.protobuf.generated.LoadBalancerProtos.LoadBalancerState parseFrom(byte[] pbBytes) throws DeserializationException
DeserializationExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.