public class RegionNormalizerTracker extends ZooKeeperNodeTracker
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
abortable, node
watcher
Constructor and Description |
---|
RegionNormalizerTracker(ZooKeeperWatcher 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.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
public RegionNormalizerTracker(ZooKeeperWatcher 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
private byte[] toByteArray(boolean isNormalizerOn)
private org.apache.hadoop.hbase.protobuf.generated.RegionNormalizerProtos.RegionNormalizerState parseFrom(byte[] pbBytes) throws DeserializationException
DeserializationException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.