public static class TestChoreService.ScheduledChoreSamples.FailInitialChore extends org.apache.hadoop.hbase.ScheduledChore
Modifier and Type | Field and Description |
---|---|
private int |
failureThreshold |
private int |
numberOfFailures |
Constructor and Description |
---|
FailInitialChore(String name,
int period,
int failThreshold) |
FailInitialChore(String name,
org.apache.hadoop.hbase.Stoppable stopper,
int period,
int failThreshold) |
Modifier and Type | Method and Description |
---|---|
protected void |
chore() |
protected boolean |
initialChore() |
cancel, cancel, choreForTesting, cleanup, getChoreServicer, getInitialDelay, getName, getPeriod, getStopper, getTimeBetweenRuns, getTimeOfLastRun, getTimeOfThisRun, getTimeUnit, isInitialChoreComplete, isScheduled, run, setChoreServicer, toString, triggerNow
private int numberOfFailures
private int failureThreshold
public FailInitialChore(String name, int period, int failThreshold)
failThreshold
- Number of times the Chore fails when trying to execute initialChore
before succeeding.public FailInitialChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period, int failThreshold)
protected boolean initialChore()
initialChore
in class org.apache.hadoop.hbase.ScheduledChore
protected void chore()
chore
in class org.apache.hadoop.hbase.ScheduledChore
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.