TestingHBaseCluster
instead.@InterfaceAudience.Public @Deprecated public class HBaseCommonTestingUtility extends Object
org.apache.hadoop.hbase.HBaseCommonTestingUtil
Modifier and Type | Field and Description |
---|---|
static String |
BASE_TEST_DIRECTORY_KEY
Deprecated.
System property key to get base test directory value
|
static List<Object[]> |
BOOLEAN_PARAMETERIZED
Deprecated.
This is for unit tests parameterized with a two booleans.
|
static Compression.Algorithm[] |
COMPRESSION_ALGORITHMS
Deprecated.
Compression algorithms to use in testing
|
static List<Object[]> |
COMPRESSION_ALGORITHMS_PARAMETERIZED
Deprecated.
Compression algorithms to use in parameterized JUnit 4 tests
|
protected org.apache.hadoop.conf.Configuration |
conf
Deprecated.
|
static String |
DEFAULT_BASE_TEST_DIRECTORY
Deprecated.
Default base directory for test output.
|
protected static org.slf4j.Logger |
LOG
Deprecated.
|
Constructor and Description |
---|
HBaseCommonTestingUtility()
Deprecated.
|
HBaseCommonTestingUtility(org.apache.hadoop.conf.Configuration conf)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
cleanupTestDir()
Deprecated.
Returns True if we removed the test dirs
|
boolean |
cleanupTestDir(String subdir)
Deprecated.
|
protected void |
createSubDir(String propertyName,
org.apache.hadoop.fs.Path parent,
String subDirName)
Deprecated.
|
org.apache.hadoop.conf.Configuration |
getConfiguration()
Deprecated.
Returns this classes's instance of
Configuration . |
org.apache.hadoop.fs.Path |
getDataTestDir()
Deprecated.
|
org.apache.hadoop.fs.Path |
getDataTestDir(String name)
Deprecated.
|
org.apache.hadoop.fs.Path |
getRandomDir()
Deprecated.
|
static UUID |
getRandomUUID()
Deprecated.
|
static int |
randomFreePort()
Deprecated.
|
protected org.apache.hadoop.fs.Path |
setupDataTestDir()
Deprecated.
Sets up a directory for a test to use.
|
<E extends Exception> |
waitFor(long timeout,
<any> predicate)
Deprecated.
Wrapper method for
Waiter#waitFor(Configuration, long, Predicate) . |
<E extends Exception> |
waitFor(long timeout,
long interval,
<any> predicate)
Deprecated.
Wrapper method for
Waiter#waitFor(Configuration, long, long, Predicate) . |
<E extends Exception> |
waitFor(long timeout,
long interval,
boolean failIfTimeout,
<any> predicate)
Deprecated.
Wrapper method for
Waiter#waitFor(Configuration, long, long, boolean, Predicate) . |
protected static final org.slf4j.Logger LOG
public static final List<Object[]> COMPRESSION_ALGORITHMS_PARAMETERIZED
public static final List<Object[]> BOOLEAN_PARAMETERIZED
public static final Compression.Algorithm[] COMPRESSION_ALGORITHMS
protected final 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 name)
name
- the name of a subdirectory or file in the test data directorygetDataTestDir()
.
Does *NOT* create the directory or file if it does not exist.protected org.apache.hadoop.fs.Path setupDataTestDir()
public org.apache.hadoop.fs.Path getRandomDir()
getBaseTestDir()
public static UUID getRandomUUID()
protected void createSubDir(String propertyName, org.apache.hadoop.fs.Path parent, String subDirName)
public boolean cleanupTestDir()
public boolean cleanupTestDir(String subdir)
subdir
- Test subdir name.public <E extends Exception> long waitFor(long timeout, <any> predicate) throws E extends Exception
Waiter#waitFor(Configuration, long, Predicate)
.E extends Exception
public <E extends Exception> long waitFor(long timeout, long interval, <any> predicate) throws E extends Exception
Waiter#waitFor(Configuration, long, long, Predicate)
.E extends Exception
public <E extends Exception> long waitFor(long timeout, long interval, boolean failIfTimeout, <any> predicate) throws E extends Exception
Waiter#waitFor(Configuration, long, long, boolean, Predicate)
.E extends Exception
public static int randomFreePort()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.