Class TestMasterAddressTracker
java.lang.Object
org.apache.hadoop.hbase.zookeeper.TestMasterAddressTracker
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final HBaseZKTestingUtilityprivate org.apache.hadoop.hbase.zookeeper.ZKWatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp()static voidprivate org.apache.hadoop.hbase.zookeeper.MasterAddressTrackersetupMasterTracker(org.apache.hadoop.hbase.ServerName sn, int infoPort) create an address tracker instancestatic voidvoidvoidvoidUnit tests that uses ZooKeeper but does not use the master-side methods but rather acts directly on ZK.voidvoidvoid
-
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
-