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, LONG_HELP_OPTION, options, SHORT_HELP_OPTION| Constructor and Description |
|---|
IntegrationTestBase() |
IntegrationTestBase(String monkeyToUse) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOptions() |
void |
cleanUp() |
void |
cleanUpCluster() |
void |
cleanUpMonkey() |
protected void |
cleanUpMonkey(String why) |
protected int |
doWork() |
protected abstract Set<String> |
getColumnFamilies()
Provides the name of the CFs that are protected from random Chaos monkey activity (alter)
|
org.apache.hadoop.conf.Configuration |
getConf() |
protected MonkeyFactory |
getDefaultMonkeyFactory() |
abstract TableName |
getTablename()
Provides the name of the table that is protected from random Chaos monkey activity
|
protected IntegrationTestingUtility |
getTestingUtil(org.apache.hadoop.conf.Configuration conf) |
protected void |
processBaseOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.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(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
abstract int |
runTestFromCommandLine() |
void |
setUp() |
abstract void |
setUpCluster() |
void |
setUpMonkey() |
protected void |
startMonkey() |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, 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()
addOptions in class AbstractHBaseToolprotected void processBaseOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
IntegrationTestReplication to
include the base options without having to also include the options from the test.cmd - the command lineprotected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions in class AbstractHBaseToolpublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.ConfigurablegetConf in class AbstractHBaseToolprotected int doWork() throws Exception
doWork in class AbstractHBaseToolExceptionpublic void setUpMonkey() throws Exception
Exceptionprotected MonkeyFactory getDefaultMonkeyFactory()
protected void startMonkey() throws Exception
Exceptionpublic void cleanUpMonkey() throws Exception
Exceptionprotected void cleanUpMonkey(String why) throws Exception
Exceptionprotected IntegrationTestingUtility getTestingUtil(org.apache.hadoop.conf.Configuration conf)
public abstract void setUpCluster() throws Exception
Exceptionpublic void cleanUpCluster() throws Exception
Exceptionpublic abstract int runTestFromCommandLine() throws Exception
Exceptionpublic abstract TableName getTablename()
protected abstract Set<String> getColumnFamilies()
Copyright © 2007–2019 Cloudera. All rights reserved.