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
Modifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configuration
private final ExecutorService
private static final org.slf4j.Logger
private final ChaosMonkeyRunner
private final Runnable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addResource
(String otherConf) void
addResource
(org.apache.hadoop.conf.Configuration otherConf) void
close()
void
void
-
Field Details
-
LOG
-
conf
-
monkeyRunner
-
runner
-
executor
-
-
Constructor Details
-
Monkeys
public Monkeys() -
Monkeys
-
-
Method Details
-
addResource
-
addResource
-
startChaos
-
stopChaos
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-