@InterfaceAudience.Private public class RegionNormalizerTracker extends ZKNodeTracker
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
abortable, node
watcher
Constructor and Description |
---|
RegionNormalizerTracker(ZKWatcher watcher,
Abortable abortable) |
Modifier and Type | Method and Description |
---|---|
boolean |
isNormalizerOn()
Return true if region normalizer is on, false otherwise
|
private org.apache.hadoop.hbase.shaded.protobuf.generated.RegionNormalizerProtos.RegionNormalizerState |
parseFrom(byte[] pbBytes) |
void |
setNormalizerOn(boolean normalizerOn)
Set region normalizer on/off
|
private byte[] |
toByteArray(boolean isNormalizerOn) |
blockUntilAvailable, blockUntilAvailable, checkIfBaseNodeAvailable, getData, getNode, nodeCreated, nodeDataChanged, nodeDeleted, start, stop, toString
getWatcher, nodeChildrenChanged
private static final org.slf4j.Logger LOG
public RegionNormalizerTracker(ZKWatcher watcher, Abortable abortable)
public boolean isNormalizerOn()
public void setNormalizerOn(boolean normalizerOn) throws org.apache.zookeeper.KeeperException
normalizerOn
- whether normalizer should be on or offorg.apache.zookeeper.KeeperException
- if a ZooKeeper operation failsprivate byte[] toByteArray(boolean isNormalizerOn)
private org.apache.hadoop.hbase.shaded.protobuf.generated.RegionNormalizerProtos.RegionNormalizerState parseFrom(byte[] pbBytes) throws DeserializationException
DeserializationException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.