public class TestZKLeaderManager extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestZKLeaderManager.MockAbortable |
private static class |
TestZKLeaderManager.MockLeader |
Modifier and Type | Field and Description |
---|---|
private static TestZKLeaderManager.MockLeader[] |
CANDIDATES |
static HBaseClassTestRule |
CLASS_RULE |
private static String |
LEADER_ZNODE |
private static org.slf4j.Logger |
LOG |
private static HBaseZKTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestZKLeaderManager() |
Modifier and Type | Method and Description |
---|---|
private TestZKLeaderManager.MockLeader |
getCurrentLeader() |
private static org.apache.hadoop.hbase.zookeeper.ZKWatcher |
newZK(org.apache.hadoop.conf.Configuration conf,
String name,
org.apache.hadoop.hbase.Abortable abort) |
static void |
setupBeforeClass() |
static void |
tearDownAfterClass() |
void |
testLeaderSelection() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final String LEADER_ZNODE
private static HBaseZKTestingUtility TEST_UTIL
private static TestZKLeaderManager.MockLeader[] CANDIDATES
public TestZKLeaderManager()
public static void setupBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testLeaderSelection() throws Exception
Exception
private TestZKLeaderManager.MockLeader getCurrentLeader()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.