Class TestChoreService.SlowChore

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

private static class TestChoreService.SlowChore extends org.apache.hadoop.hbase.ScheduledChore
Sleeps for longer than the scheduled period. This chore always misses its scheduled periodic executions
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlowChore(String name, int period)
     
    SlowChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected boolean
     

    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
  • Constructor Details

    • SlowChore

      public SlowChore(String name, int period)
    • SlowChore

      public SlowChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period)
  • 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