public abstract class IntegrationTestBase extends AbstractHBaseTool
| Modifier and Type | Field and Description |
|---|---|
static String |
CHAOS_MONKEY_PROPS |
protected ChaosMonkey |
monkey |
static String |
MONKEY_LONG_OPT |
protected Properties |
monkeyProps |
protected String |
monkeyToUse |
static String |
NO_CLUSTER_CLEANUP_LONG_OPT |
protected boolean |
noClusterCleanUp |
protected IntegrationTestingUtility |
util |
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS| Constructor and Description |
|---|
IntegrationTestBase() |
IntegrationTestBase(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(String why) |
protected int |
doWork()
The "main function" of the tool
|
protected abstract Set<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 String NO_CLUSTER_CLEANUP_LONG_OPT
public static final String MONKEY_LONG_OPT
public static final String CHAOS_MONKEY_PROPS
protected IntegrationTestingUtility util
protected ChaosMonkey monkey
protected String monkeyToUse
protected Properties monkeyProps
protected boolean noClusterCleanUp
public IntegrationTestBase()
public IntegrationTestBase(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 Exception
AbstractHBaseTooldoWork in class AbstractHBaseToolExceptionprotected MonkeyFactory getDefaultMonkeyFactory()
protected IntegrationTestingUtility getTestingUtil(Configuration conf)
public abstract int runTestFromCommandLine()
throws Exception
Exceptionpublic abstract TableName getTablename()