Package org.apache.hadoop.hbase
Class HBaseCommonTestingUtility
java.lang.Object
org.apache.hadoop.hbase.HBaseCommonTestingUtility
- Direct Known Subclasses:
HBaseZKTestingUtility
Deprecated.
Common helpers for testing HBase that do not depend on specific server/etc. things.
- See Also:
-
org.apache.hadoop.hbase.HBaseCommonTestingUtil
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Deprecated. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.System property key to get base test directory valueDeprecated.This is for unit tests parameterized with a two booleans.static final Compression.Algorithm[]
Deprecated.Compression algorithms to use in testingDeprecated.Compression algorithms to use in parameterized JUnit 4 testsprotected final org.apache.hadoop.conf.Configuration
Deprecated.private File
Deprecated.Directory where we put the data for this instance of HBaseTestingUtilitystatic final String
Deprecated.Default base directory for test output.protected static final org.slf4j.Logger
Deprecated.private static final HBaseCommonTestingUtility.PortAllocator
Deprecated. -
Constructor Summary
ConstructorDescriptionDeprecated.HBaseCommonTestingUtility
(org.apache.hadoop.conf.Configuration conf) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Returns True if we removed the test dirsboolean
cleanupTestDir
(String subdir) Deprecated.protected void
createSubDir
(String propertyName, org.apache.hadoop.fs.Path parent, String subDirName) Deprecated.(package private) boolean
Deprecated.(package private) boolean
Deprecated.Returns True if we should delete testing dirs on exit.private org.apache.hadoop.fs.Path
Deprecated.org.apache.hadoop.conf.Configuration
Deprecated.Returns this classes's instance ofConfiguration
.org.apache.hadoop.fs.Path
Deprecated.org.apache.hadoop.fs.Path
getDataTestDir
(String name) Deprecated.org.apache.hadoop.fs.Path
Deprecated.static UUID
Deprecated.static int
Deprecated.protected org.apache.hadoop.fs.Path
Deprecated.Sets up a directory for a test to use.<E extends Exception>
longwaitFor
(long timeout, long interval, boolean failIfTimeout, <any> predicate) Deprecated.Wrapper method forWaiter#waitFor(Configuration, long, long, boolean, Predicate)
.<E extends Exception>
longwaitFor
(long timeout, long interval, <any> predicate) Deprecated.Wrapper method forWaiter#waitFor(Configuration, long, long, Predicate)
.<E extends Exception>
longwaitFor
(long timeout, <any> predicate) Deprecated.Wrapper method forWaiter#waitFor(Configuration, long, Predicate)
.
-
Field Details
-
LOG
Deprecated. -
COMPRESSION_ALGORITHMS_PARAMETERIZED
Deprecated.Compression algorithms to use in parameterized JUnit 4 tests -
BOOLEAN_PARAMETERIZED
Deprecated.This is for unit tests parameterized with a two booleans. -
COMPRESSION_ALGORITHMS
Deprecated.Compression algorithms to use in testing -
conf
Deprecated. -
BASE_TEST_DIRECTORY_KEY
Deprecated.System property key to get base test directory value- See Also:
-
DEFAULT_BASE_TEST_DIRECTORY
Deprecated.Default base directory for test output.- See Also:
-
dataTestDir
Deprecated.Directory where we put the data for this instance of HBaseTestingUtility -
portAllocator
Deprecated.
-
-
Constructor Details
-
HBaseCommonTestingUtility
public HBaseCommonTestingUtility()Deprecated. -
HBaseCommonTestingUtility
Deprecated.
-
-
Method Details
-
getConfiguration
Deprecated.Returns this classes's instance ofConfiguration
.- Returns:
- Instance of Configuration.
-
getDataTestDir
Deprecated.- Returns:
- Where to write test data on local filesystem, specific to the test. Useful for tests that do not use a cluster. Creates it if it does not exist already.
-
getDataTestDir
Deprecated.- Parameters:
name
- the name of a subdirectory or file in the test data directory- Returns:
- Path to a subdirectory or file named {code subdirName} under
getDataTestDir()
. Does *NOT* create the directory or file if it does not exist.
-
setupDataTestDir
Deprecated.Sets up a directory for a test to use.- Returns:
- New directory path, if created.
-
getRandomDir
Deprecated.- Returns:
- A dir with a random (uuid) name under the test dir
- See Also:
-
getRandomUUID
Deprecated. -
createSubDir
protected void createSubDir(String propertyName, org.apache.hadoop.fs.Path parent, String subDirName) Deprecated. -
deleteOnExit
boolean deleteOnExit()Deprecated.Returns True if we should delete testing dirs on exit. -
cleanupTestDir
Deprecated.Returns True if we removed the test dirs -
cleanupTestDir
Deprecated.- Parameters:
subdir
- Test subdir name.- Returns:
- True if we removed the test dir
-
getBaseTestDir
Deprecated.- Returns:
- Where to write test data on local filesystem; usually
DEFAULT_BASE_TEST_DIRECTORY
Should not be used by the unit tests, hence its's private. Unit test will use a subdirectory of this directory. - See Also:
-
deleteDir
Deprecated.- Parameters:
dir
- Directory to delete- Returns:
- True if we deleted it.
-
waitFor
Deprecated.Wrapper method forWaiter#waitFor(Configuration, long, Predicate)
.- Throws:
E extends Exception
-
waitFor
Deprecated.Wrapper method forWaiter#waitFor(Configuration, long, long, Predicate)
.- Throws:
E extends Exception
-
waitFor
public <E extends Exception> long waitFor(long timeout, long interval, boolean failIfTimeout, <any> predicate) throws E Deprecated.Wrapper method forWaiter#waitFor(Configuration, long, long, boolean, Predicate)
.- Throws:
E extends Exception
-
randomFreePort
Deprecated.
-
TestingHBaseCluster
instead.