Class DoActionsOncePolicy
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.DoActionsOncePolicy
- All Implemented Interfaces:
Runnable
,org.apache.hadoop.hbase.Stoppable
A policy which performs a sequence of actions deterministically.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.chaos.policies.Policy
Policy.PolicyContext
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDoActionsOncePolicy
(long periodMs, List<Action> actions) DoActionsOncePolicy
(long periodMs, Action... actions) -
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
-
actions
-
-
Constructor Details
-
DoActionsOncePolicy
-
DoActionsOncePolicy
-
-
Method Details
-
runOneIteration
- Specified by:
runOneIteration
in classPeriodicPolicy
-
init
- Overrides:
init
in classPeriodicPolicy
- Throws:
Exception
-