@InterfaceAudience.Public @InterfaceStability.Unstable public class HBaseCommonTestingUtility extends Object
HBaseTestingUtility}
Modifier and Type | Field and Description |
---|---|
static String |
BASE_TEST_DIRECTORY_KEY
System property key to get base test directory value
|
protected org.apache.hadoop.conf.Configuration |
conf |
static String |
DEFAULT_BASE_TEST_DIRECTORY
Default base directory for test output.
|
protected static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
HBaseCommonTestingUtility() |
HBaseCommonTestingUtility(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
boolean |
cleanupTestDir() |
protected void |
createSubDir(String propertyName,
org.apache.hadoop.fs.Path parent,
String subDirName) |
org.apache.hadoop.conf.Configuration |
getConfiguration()
Returns this classes's instance of
Configuration . |
org.apache.hadoop.fs.Path |
getDataTestDir() |
org.apache.hadoop.fs.Path |
getDataTestDir(String subdirName) |
protected org.apache.hadoop.fs.Path |
setupDataTestDir()
Sets up a directory for a test to use.
|
protected static final org.apache.commons.logging.Log LOG
protected org.apache.hadoop.conf.Configuration conf
public static final String BASE_TEST_DIRECTORY_KEY
public static final String DEFAULT_BASE_TEST_DIRECTORY
public HBaseCommonTestingUtility()
public HBaseCommonTestingUtility(org.apache.hadoop.conf.Configuration conf)
public org.apache.hadoop.conf.Configuration getConfiguration()
Configuration
.public org.apache.hadoop.fs.Path getDataTestDir()
public org.apache.hadoop.fs.Path getDataTestDir(String subdirName)
subdirName
- subdirName
under
getDataTestDir()
.
Does *NOT* create it if it does not exist.protected org.apache.hadoop.fs.Path setupDataTestDir()
protected void createSubDir(String propertyName, org.apache.hadoop.fs.Path parent, String subDirName)
public boolean cleanupTestDir() throws IOException
IOException
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.