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
Constructor and Description |
---|
ChaosMonkeyRunner() |
Modifier and Type | Method and Description |
---|---|
void |
addOptions()
Override this to add command-line options using
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods. |
protected int |
doWork()
The "main function" of the tool
|
void |
getAndStartMonkey() |
protected Set<String> |
getColumnFamilies() |
protected MonkeyFactory |
getDefaultMonkeyFactory() |
TableName |
getTablename() |
protected IntegrationTestingUtility |
getTestingUtil(Configuration conf) |
static void |
main(String[] args) |
protected void |
processOptions(CommandLine cmd)
This method is called to process the options after they have been parsed.
|
void |
setUpCluster() |
addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, parseArgs, parseInt, parseLong, printUsage, printUsage, run, setConf
public 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 void addOptions()
AbstractHBaseTool
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods.addOptions
in class AbstractHBaseTool
protected void processOptions(CommandLine cmd)
AbstractHBaseTool
processOptions
in class AbstractHBaseTool
protected int doWork() throws Exception
AbstractHBaseTool
doWork
in class AbstractHBaseTool
Exception
protected IntegrationTestingUtility getTestingUtil(Configuration conf)
protected MonkeyFactory getDefaultMonkeyFactory()
public TableName getTablename()