Class TestMasterAddressTracker
java.lang.Object
org.apache.hadoop.hbase.zookeeper.TestMasterAddressTracker
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final HBaseZKTestingUtility
private org.apache.hadoop.hbase.zookeeper.ZKWatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp()
static void
private org.apache.hadoop.hbase.zookeeper.MasterAddressTracker
setupMasterTracker
(org.apache.hadoop.hbase.ServerName sn, int infoPort) create an address tracker instancestatic void
void
void
void
Unit tests that uses ZooKeeper but does not use the master-side methods but rather acts directly on ZK.void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
zk
-
name
-
-
Constructor Details
-
TestMasterAddressTracker
public TestMasterAddressTracker()
-
-
Method Details
-
cleanUp
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testDeleteIfEquals
- Throws:
Exception
-
setupMasterTracker
private org.apache.hadoop.hbase.zookeeper.MasterAddressTracker setupMasterTracker(org.apache.hadoop.hbase.ServerName sn, int infoPort) throws Exception create an address tracker instance- Parameters:
sn
- if not-null set the active masterinfoPort
- if there is an active master, set its info port.- Throws:
Exception
-
testMasterAddressTrackerFromZK
Unit tests that uses ZooKeeper but does not use the master-side methods but rather acts directly on ZK.- Throws:
Exception
-
testParsingNull
- Throws:
Exception
-
testNoBackups
- Throws:
Exception
-
testNoMaster
- Throws:
Exception
-
testBackupMasters
- Throws:
Exception
-