Package org.apache.hadoop.hbase.client
Class TestMasterRegistry
java.lang.Object
org.apache.hadoop.hbase.client.TestMasterRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringgenerateDummyMastersList(int size) Generates a string of dummy master addresses in host:port format.static voidsetUp()static voidtearDown()voidTests that the list of masters configured in the MasterRegistry is dynamically refreshed in the event of errors.voidMakes sure the master registry parses the master end points in the configuration correctly.voidvoid
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
-
Constructor Details
-
TestMasterRegistry
public TestMasterRegistry()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
generateDummyMastersList
Generates a string of dummy master addresses in host:port format. Every other hostname won't have a port number. -
testMasterAddressParsing
Makes sure the master registry parses the master end points in the configuration correctly.- Throws:
Exception
-
testMasterPortDefaults
- Throws:
Exception
-
testRegistryRPCs
- Throws:
Exception
-
testDynamicMasterConfigurationRefresh
Tests that the list of masters configured in the MasterRegistry is dynamically refreshed in the event of errors.- Throws:
Exception
-