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
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
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.