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 HBaseTestingUtility | 
TEST_UTIL  | 
| Constructor and Description | 
|---|
TestMasterAddressTracker()  | 
| Modifier and Type | Method and Description | 
|---|---|
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 | 
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 HBaseTestingUtility TEST_UTIL
public org.junit.rules.TestName name
public TestMasterAddressTracker()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testDeleteIfEquals() throws Exception
Exceptionprivate 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.Exceptionpublic void testMasterAddressTrackerFromZK() throws Exception
Exceptionpublic void testParsingNull() throws Exception
Exceptionpublic void testNoBackups() throws Exception
Exceptionpublic void testNoMaster() throws Exception
ExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.