@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 Configuration |
conf |
static 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(String propertyName,
Path parent,
String subDirName) |
Configuration |
getConfiguration()
Returns this classes's instance of
Configuration . |
Path |
getDataTestDir() |
Path |
getDataTestDir(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 String BASE_TEST_DIRECTORY_KEY
public static final String DEFAULT_BASE_TEST_DIRECTORY
public HBaseCommonTestingUtility()
public HBaseCommonTestingUtility(Configuration conf)
public Configuration getConfiguration()
Configuration
.public Path getDataTestDir()
public Path getDataTestDir(String subdirName)
subdirName
- subdirName
under
getDataTestDir()
.
Does *NOT* create it if it does not exist.protected Path setupDataTestDir()
public boolean cleanupTestDir() throws IOException
IOException