Class Monkeys
java.lang.Object
org.apache.hadoop.hbase.chaos.util.Monkeys
- All Implemented Interfaces:
Closeable,AutoCloseable
This class can be used to control chaos monkeys life cycle.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configurationprivate final ExecutorServiceprivate static final org.slf4j.Loggerprivate final ChaosMonkeyRunnerprivate final Runnable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResource(String otherConf) voidaddResource(org.apache.hadoop.conf.Configuration otherConf) voidclose()voidvoid
-
Field Details
-
LOG
-
conf
-
monkeyRunner
-
runner
-
executor
-
-
Constructor Details
-
Monkeys
public Monkeys() -
Monkeys
-
-
Method Details
-
addResource
-
addResource
-
startChaos
-
stopChaos
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-