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 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 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
Exceptionprotected static void addResourceToRegionServerConfiguration(HBaseTestingUtility testUtil)
protected void replaceHBaseSiteXML() throws IOException
restoreHBaseSiteXML().IOException - if an I/O error occursprotected void restoreHBaseSiteXML() throws IOException
replaceHBaseSiteXML().IOException - if an I/O error occursCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.