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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionFailInitialChore(String name, int period, int failThreshold) FailInitialChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period, int failThreshold) 
- 
Method SummaryMethods inherited from class org.apache.hadoop.hbase.ScheduledChorecancel, 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.
 
- 
FailInitialChorepublic FailInitialChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period, int failThreshold) 
 
- 
- 
Method Details- 
initialChore- Overrides:
- initialChorein class- org.apache.hadoop.hbase.ScheduledChore
 
- 
chore- Specified by:
- chorein class- org.apache.hadoop.hbase.ScheduledChore
 
 
-