Package org.apache.hadoop.hbase
Class TestChoreService.CountingChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.TestChoreService.CountingChore
- All Implemented Interfaces:
Runnable
- Enclosing class:
- TestChoreService
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCountingChore
(String name, int period) CountingChore
(String name, org.apache.hadoop.hbase.Stoppable stopper, int period) CountingChore
(String name, org.apache.hadoop.hbase.Stoppable stopper, int period, boolean outputOnTicks) -
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
-
countOfChoreCalls
-
outputOnTicks
-
-
Constructor Details
-
CountingChore
-
CountingChore
-
CountingChore
public CountingChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period, boolean outputOnTicks)
-
-
Method Details
-
initialChore
- Overrides:
initialChore
in classorg.apache.hadoop.hbase.ScheduledChore
-
chore
- Specified by:
chore
in classorg.apache.hadoop.hbase.ScheduledChore
-
outputTickCount
-
getCountOfChoreCalls
-