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

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

    Constructors
    Constructor
    Description
    FailInitialChore(String name, int period, int failThreshold)
     
    FailInitialChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period, int failThreshold)
     
  • 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
  • Field Details

  • Constructor Details

    • FailInitialChore

      public FailInitialChore(String name, int period, int failThreshold)
      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

      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