public class TestMasterAddressTracker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestMasterAddressTracker.NodeCreationListener |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static HBaseZKTestingUtility |
TEST_UTIL |
private org.apache.hadoop.hbase.zookeeper.ZKWatcher |
zk |
Constructor and Description |
---|
TestMasterAddressTracker() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
static void |
setUpBeforeClass() |
private org.apache.hadoop.hbase.zookeeper.MasterAddressTracker |
setupMasterTracker(org.apache.hadoop.hbase.ServerName sn,
int infoPort)
create an address tracker instance
|
static void |
tearDownAfterClass() |
void |
testBackupMasters() |
void |
testDeleteIfEquals() |
void |
testMasterAddressTrackerFromZK()
Unit tests that uses ZooKeeper but does not use the master-side methods but rather acts
directly on ZK.
|
void |
testNoBackups() |
void |
testNoMaster() |
void |
testParsingNull() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseZKTestingUtility TEST_UTIL
private org.apache.hadoop.hbase.zookeeper.ZKWatcher zk
public org.junit.rules.TestName name
public TestMasterAddressTracker()
public void cleanUp()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testDeleteIfEquals() throws Exception
Exception
private org.apache.hadoop.hbase.zookeeper.MasterAddressTracker setupMasterTracker(org.apache.hadoop.hbase.ServerName sn, int infoPort) throws Exception
sn
- if not-null set the active masterinfoPort
- if there is an active master, set its info port.Exception
public void testMasterAddressTrackerFromZK() throws Exception
Exception
public void testParsingNull() throws Exception
Exception
public void testNoBackups() throws Exception
Exception
public void testNoMaster() throws Exception
Exception
public void testBackupMasters() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.