public abstract class IntegrationTestBase extends AbstractHBaseTool
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CHAOS_MONKEY_PROPS |
protected ChaosMonkey |
monkey |
static java.lang.String |
MONKEY_LONG_OPT |
protected java.util.Properties |
monkeyProps |
protected java.lang.String |
monkeyToUse |
static java.lang.String |
NO_CLUSTER_CLEANUP_LONG_OPT |
protected boolean |
noClusterCleanUp |
protected IntegrationTestingUtility |
util |
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS| Constructor and Description |
|---|
IntegrationTestBase() |
IntegrationTestBase(java.lang.String monkeyToUse) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOptions()
Override this to add command-line options using
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods. |
void |
cleanUp() |
void |
cleanUpCluster() |
void |
cleanUpMonkey() |
protected void |
cleanUpMonkey(java.lang.String why) |
protected int |
doWork()
The "main function" of the tool
|
protected abstract java.util.Set<java.lang.String> |
getColumnFamilies() |
Configuration |
getConf() |
protected MonkeyFactory |
getDefaultMonkeyFactory() |
abstract TableName |
getTablename() |
protected IntegrationTestingUtility |
getTestingUtil(Configuration conf) |
protected void |
processBaseOptions(CommandLine cmd)
This allows tests that subclass children of this base class such as
IntegrationTestReplication to
include the base options without having to also include the options from the test. |
protected void |
processOptions(CommandLine cmd)
This method is called to process the options after they have been parsed.
|
abstract int |
runTestFromCommandLine() |
void |
setUp() |
abstract void |
setUpCluster() |
void |
setUpMonkey() |
protected void |
startMonkey() |
addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, parseArgs, parseInt, parseLong, printUsage, printUsage, run, setConfpublic static final java.lang.String NO_CLUSTER_CLEANUP_LONG_OPT
public static final java.lang.String MONKEY_LONG_OPT
public static final java.lang.String CHAOS_MONKEY_PROPS
protected IntegrationTestingUtility util
protected ChaosMonkey monkey
protected java.lang.String monkeyToUse
protected java.util.Properties monkeyProps
protected boolean noClusterCleanUp
public IntegrationTestBase()
public IntegrationTestBase(java.lang.String monkeyToUse)
protected void addOptions()
AbstractHBaseToolAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods.addOptions in class AbstractHBaseToolprotected void processBaseOptions(CommandLine cmd)
IntegrationTestReplication to
include the base options without having to also include the options from the test.cmd - the command lineprotected void processOptions(CommandLine cmd)
AbstractHBaseToolprocessOptions in class AbstractHBaseToolpublic Configuration getConf()
getConf in class AbstractHBaseToolprotected int doWork()
throws java.lang.Exception
AbstractHBaseTooldoWork in class AbstractHBaseTooljava.lang.Exceptionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void cleanUp()
throws java.lang.Exception
java.lang.Exceptionpublic void setUpMonkey()
throws java.lang.Exception
java.lang.Exceptionprotected MonkeyFactory getDefaultMonkeyFactory()
protected void startMonkey()
throws java.lang.Exception
java.lang.Exceptionpublic void cleanUpMonkey()
throws java.lang.Exception
java.lang.Exceptionprotected void cleanUpMonkey(java.lang.String why)
throws java.lang.Exception
java.lang.Exceptionprotected IntegrationTestingUtility getTestingUtil(Configuration conf)
public abstract void setUpCluster()
throws java.lang.Exception
java.lang.Exceptionpublic void cleanUpCluster()
throws java.lang.Exception
java.lang.Exceptionpublic abstract int runTestFromCommandLine()
throws java.lang.Exception
java.lang.Exceptionpublic abstract TableName getTablename()
protected abstract java.util.Set<java.lang.String> getColumnFamilies()