public abstract class AbstractTestUpdateConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
BACKUP_SERVER_CONFIG |
private static Path |
backupConfigFileUnderTestDataDir |
private static Path |
configFileUnderTestDataDir |
private static org.slf4j.Logger |
LOG |
private static String |
OVERRIDE_SERVER_CONFIG |
private static Path |
overrideConfigFileUnderTestDataDir |
private static String |
SERVER_CONFIG |
Constructor and Description |
---|
AbstractTestUpdateConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addResourceToRegionServerConfiguration(HBaseTestingUtility testUtil) |
protected void |
replaceHBaseSiteXML()
Replace the hbase-site.xml file under this test's data directory with the content of the
override-hbase-site.xml file.
|
protected void |
restoreHBaseSiteXML()
Restores the hbase-site.xml file that was stashed by a previous call to
replaceHBaseSiteXML() . |
protected static void |
setUpConfigurationFiles(HBaseTestingUtility testUtil) |
private static final org.slf4j.Logger LOG
private static final String SERVER_CONFIG
private static final String OVERRIDE_SERVER_CONFIG
private static final String BACKUP_SERVER_CONFIG
private static Path configFileUnderTestDataDir
private static Path overrideConfigFileUnderTestDataDir
private static Path backupConfigFileUnderTestDataDir
public AbstractTestUpdateConfiguration()
protected static void setUpConfigurationFiles(HBaseTestingUtility testUtil) throws Exception
Exception
protected static void addResourceToRegionServerConfiguration(HBaseTestingUtility testUtil)
protected final void replaceHBaseSiteXML() throws IOException
restoreHBaseSiteXML()
.IOException
- if an I/O error occursprotected final void restoreHBaseSiteXML() throws IOException
replaceHBaseSiteXML()
.IOException
- if an I/O error occursCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.