public class ChaosMonkeyRunner extends AbstractHBaseTool
| Modifier and Type | Field and Description |
|---|---|
static String |
CHAOS_MONKEY_PROPS |
static String |
FAMILY_NAME_OPT |
protected ChaosMonkey |
monkey |
static String |
MONKEY_LONG_OPT |
protected Properties |
monkeyProps |
protected String |
monkeyToUse |
protected boolean |
noClusterCleanUp |
static String |
TABLE_NAME_OPT |
protected IntegrationTestingUtility |
util |
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION| Constructor and Description |
|---|
ChaosMonkeyRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOptions() |
protected int |
doWork() |
void |
getAndStartMonkey() |
protected Set<String> |
getColumnFamilies() |
protected MonkeyFactory |
getDefaultMonkeyFactory() |
TableName |
getTablename() |
protected IntegrationTestingUtility |
getTestingUtil(org.apache.hadoop.conf.Configuration conf) |
static void |
main(String[] args) |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
void |
setUpCluster() |
void |
stopRunner() |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConfpublic static final String MONKEY_LONG_OPT
public static final String CHAOS_MONKEY_PROPS
public static final String TABLE_NAME_OPT
public static final String FAMILY_NAME_OPT
protected IntegrationTestingUtility util
protected ChaosMonkey monkey
protected String monkeyToUse
protected Properties monkeyProps
protected boolean noClusterCleanUp
public ChaosMonkeyRunner()
public void addOptions()
addOptions in class AbstractHBaseToolprotected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions in class AbstractHBaseToolprotected int doWork() throws Exception
doWork in class AbstractHBaseToolExceptionpublic void stopRunner()
public void setUpCluster() throws Exception
Exceptionpublic void getAndStartMonkey() throws Exception
Exceptionprotected IntegrationTestingUtility getTestingUtil(org.apache.hadoop.conf.Configuration conf)
protected MonkeyFactory getDefaultMonkeyFactory()
public TableName getTablename()
protected Set<String> getColumnFamilies()
Copyright © 2007–2019 Cloudera. All rights reserved.