public class PeriodicRandomActionPolicy extends PeriodicPolicy
Policy.PolicyContext
Modifier and Type | Field and Description |
---|---|
private List<org.apache.hadoop.hbase.util.Pair<Action,Integer>> |
actions |
Constructor and Description |
---|
PeriodicRandomActionPolicy(long periodMs,
Action... actions) |
PeriodicRandomActionPolicy(long periodMs,
List<org.apache.hadoop.hbase.util.Pair<Action,Integer>> actions) |
PeriodicRandomActionPolicy(long periodMs,
org.apache.hadoop.hbase.util.Pair<Action,Integer>... actions) |
Modifier and Type | Method and Description |
---|---|
void |
init(Policy.PolicyContext context) |
protected void |
runOneIteration() |
run
isStopped, stop
public PeriodicRandomActionPolicy(long periodMs, List<org.apache.hadoop.hbase.util.Pair<Action,Integer>> actions)
public PeriodicRandomActionPolicy(long periodMs, org.apache.hadoop.hbase.util.Pair<Action,Integer>... actions)
public PeriodicRandomActionPolicy(long periodMs, Action... actions)
protected void runOneIteration()
runOneIteration
in class PeriodicPolicy
public void init(Policy.PolicyContext context) throws Exception
init
in class PeriodicPolicy
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.