Package org.apache.hadoop.hbase
Class TestChoreService.FailInitialChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.TestChoreService.FailInitialChore
- All Implemented Interfaces:
Runnable
- Enclosing class:
- TestChoreService
public static class TestChoreService.FailInitialChore
extends org.apache.hadoop.hbase.ScheduledChore
A Chore that will try to execute the initial chore a few times before succeeding. Once the
initial chore is complete the chore cancels itself
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFailInitialChore
(String name, int period, int failThreshold) FailInitialChore
(String name, org.apache.hadoop.hbase.Stoppable stopper, int period, int failThreshold) -
Method Summary
Methods inherited from class org.apache.hadoop.hbase.ScheduledChore
cancel, cancel, choreForTesting, cleanup, getChoreService, getInitialDelay, getName, getPeriod, getStopper, getTimeBetweenRuns, getTimeOfLastRun, getTimeOfThisRun, getTimeUnit, isInitialChoreComplete, isScheduled, run, setChoreService, shutdown, shutdown, toString, triggerNow
-
Field Details
-
numberOfFailures
-
failureThreshold
-
-
Constructor Details
-
FailInitialChore
- Parameters:
failThreshold
- Number of times the Chore fails when trying to execute initialChore before succeeding.
-
FailInitialChore
public FailInitialChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period, int failThreshold)
-
-
Method Details
-
initialChore
- Overrides:
initialChore
in classorg.apache.hadoop.hbase.ScheduledChore
-
chore
- Specified by:
chore
in classorg.apache.hadoop.hbase.ScheduledChore
-