@InterfaceAudience.Private public class SplitOrMergeTracker extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
SplitOrMergeTracker.SwitchStateTracker |
Modifier and Type | Field and Description |
---|---|
private SplitOrMergeTracker.SwitchStateTracker |
mergeStateTracker |
private String |
mergeZnode |
private SplitOrMergeTracker.SwitchStateTracker |
splitStateTracker |
private String |
splitZnode |
Constructor and Description |
---|
SplitOrMergeTracker(ZKWatcher watcher,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable) |
Modifier and Type | Method and Description |
---|---|
boolean |
isSplitOrMergeEnabled(MasterSwitchType switchType) |
void |
setSplitOrMergeEnabled(boolean enabled,
MasterSwitchType switchType) |
void |
start() |
private String splitZnode
private String mergeZnode
private SplitOrMergeTracker.SwitchStateTracker splitStateTracker
private SplitOrMergeTracker.SwitchStateTracker mergeStateTracker
public SplitOrMergeTracker(ZKWatcher watcher, org.apache.hadoop.conf.Configuration conf, Abortable abortable)
public void start()
public boolean isSplitOrMergeEnabled(MasterSwitchType switchType)
public void setSplitOrMergeEnabled(boolean enabled, MasterSwitchType switchType) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.