Class TestChoreService.CountingChore

java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.TestChoreService.CountingChore
All Implemented Interfaces:
Runnable
Enclosing class:
TestChoreService

private static class TestChoreService.CountingChore extends org.apache.hadoop.hbase.ScheduledChore
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CountingChore(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

    Modifier and Type
    Method
    Description
    protected void
     
    int
     
    protected boolean
     
    private void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • CountingChore

      public CountingChore(String name, int period)
    • CountingChore

      public CountingChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period)
    • CountingChore

      public CountingChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period, boolean outputOnTicks)
  • Method Details

    • initialChore

      protected boolean initialChore()
      Overrides:
      initialChore in class org.apache.hadoop.hbase.ScheduledChore
    • chore

      protected void chore()
      Specified by:
      chore in class org.apache.hadoop.hbase.ScheduledChore
    • outputTickCount

      private void outputTickCount()
    • getCountOfChoreCalls

      public int getCountOfChoreCalls()