Package org.apache.hadoop.hbase.client
Class AbstractTestUpdateConfiguration
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
- Direct Known Subclasses:
TestAsyncAdminBase
,TestRSGroupsBase
,TestUpdateConfiguration
Base class to test Configuration Update logic. It wraps up things needed to test configuration
change and provides utility methods for test cluster setup, updating/restoring configuration
file.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
protected final void
Replace the hbase-site.xml file under this test's data directory with the content of the override-hbase-site.xml file.protected final void
Restores the hbase-site.xml file that was stashed by a previous call toreplaceHBaseSiteXML()
.protected static void
setUpConfigurationFiles
(HBaseTestingUtil testUtil)
-
Field Details
-
LOG
-
SERVER_CONFIG
- See Also:
-
OVERRIDE_SERVER_CONFIG
- See Also:
-
BACKUP_SERVER_CONFIG
- See Also:
-
configFileUnderTestDataDir
-
overrideConfigFileUnderTestDataDir
-
backupConfigFileUnderTestDataDir
-
-
Constructor Details
-
AbstractTestUpdateConfiguration
public AbstractTestUpdateConfiguration()
-
-
Method Details
-
setUpConfigurationFiles
- Throws:
Exception
-
addResourceToRegionServerConfiguration
-
replaceHBaseSiteXML
Replace the hbase-site.xml file under this test's data directory with the content of the override-hbase-site.xml file. Stashes the current existing file so that it can be restored usingrestoreHBaseSiteXML()
.- Throws:
IOException
- if an I/O error occurs
-
restoreHBaseSiteXML
Restores the hbase-site.xml file that was stashed by a previous call toreplaceHBaseSiteXML()
.- Throws:
IOException
- if an I/O error occurs
-