Class TwoConcurrentActionPolicy
java.lang.Object
org.apache.hadoop.hbase.util.StoppableImplementation
org.apache.hadoop.hbase.chaos.policies.Policy
org.apache.hadoop.hbase.chaos.policies.PeriodicPolicy
org.apache.hadoop.hbase.chaos.policies.TwoConcurrentActionPolicy
- All Implemented Interfaces:
Runnable
,org.apache.hadoop.hbase.Stoppable
Chaos Monkey policy that will run two different actions at the same time. A random action from
each array of actions will be chosen and then run in parallel.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.chaos.policies.Policy
Policy.PolicyContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Action[]
private final Action[]
private final ExecutorService
-
Constructor Summary
ConstructorDescriptionTwoConcurrentActionPolicy
(long sleepTime, Action[] actionsOne, Action[] actionsTwo) -
Method Summary
Methods inherited from class org.apache.hadoop.hbase.chaos.policies.PeriodicPolicy
run
Methods inherited from class org.apache.hadoop.hbase.util.StoppableImplementation
isStopped, stop
-
Field Details
-
actionsOne
-
actionsTwo
-
executor
-
-
Constructor Details
-
TwoConcurrentActionPolicy
-
-
Method Details
-
runOneIteration
- Specified by:
runOneIteration
in classPeriodicPolicy
-
init
- Overrides:
init
in classPeriodicPolicy
- Throws:
Exception
-