@InterfaceAudience.Public @InterfaceStability.Unstable public class HBaseCommonTestingUtility extends java.lang.Object
HBaseTestingUtility}| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BASE_TEST_DIRECTORY_KEY
System property key to get base test directory value
|
protected Configuration |
conf |
static java.lang.String |
DEFAULT_BASE_TEST_DIRECTORY
Default base directory for test output.
|
protected static Log |
LOG |
| Constructor and Description |
|---|
HBaseCommonTestingUtility() |
HBaseCommonTestingUtility(Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cleanupTestDir() |
protected void |
createSubDir(java.lang.String propertyName,
Path parent,
java.lang.String subDirName) |
Configuration |
getConfiguration()
Returns this classes's instance of
Configuration. |
Path |
getDataTestDir() |
Path |
getDataTestDir(java.lang.String subdirName) |
protected Path |
setupDataTestDir()
Sets up a directory for a test to use.
|
protected static final Log LOG
protected Configuration conf
public static final java.lang.String BASE_TEST_DIRECTORY_KEY
public static final java.lang.String DEFAULT_BASE_TEST_DIRECTORY
public HBaseCommonTestingUtility()
public HBaseCommonTestingUtility(Configuration conf)
public Configuration getConfiguration()
Configuration.public Path getDataTestDir()
public Path getDataTestDir(java.lang.String subdirName)
subdirName - subdirName under
getDataTestDir().
Does *NOT* create it if it does not exist.protected Path setupDataTestDir()
protected void createSubDir(java.lang.String propertyName,
Path parent,
java.lang.String subDirName)
public boolean cleanupTestDir()
throws java.io.IOException
java.io.IOException