public abstract class IntegrationTestBase extends org.apache.hadoop.hbase.util.AbstractHBaseTool
Modifier and Type | Field and Description |
---|---|
static String |
CHAOS_MONKEY_PROPS |
private static org.slf4j.Logger |
LOG |
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 |
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 org.apache.hadoop.hbase.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) |
static void |
loadMonkeyProperties(Properties props,
org.apache.hadoop.conf.Configuration conf)
Loads entries from the provided
conf into props when the configuration key
is one that may be configuring ChaosMonkey actions. |
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, setConf
public static final String NO_CLUSTER_CLEANUP_LONG_OPT
public static final String MONKEY_LONG_OPT
public static final String CHAOS_MONKEY_PROPS
private static final org.slf4j.Logger LOG
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 org.apache.hadoop.hbase.util.AbstractHBaseTool
protected 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 linepublic static void loadMonkeyProperties(Properties props, org.apache.hadoop.conf.Configuration conf)
conf
into props
when the configuration key
is one that may be configuring ChaosMonkey actions.protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
getConf
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
protected int doWork() throws Exception
doWork
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
Exception
public void setUpMonkey() throws Exception
Exception
protected MonkeyFactory getDefaultMonkeyFactory()
protected void startMonkey() throws Exception
Exception
public void cleanUpMonkey() throws Exception
Exception
protected void cleanUpMonkey(String why) throws Exception
Exception
protected IntegrationTestingUtility getTestingUtil(org.apache.hadoop.conf.Configuration conf)
public abstract void setUpCluster() throws Exception
Exception
public void cleanUpCluster() throws Exception
Exception
public abstract int runTestFromCommandLine() throws Exception
Exception
public abstract org.apache.hadoop.hbase.TableName getTablename()
protected abstract Set<String> getColumnFamilies()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.