public static class TestChoreService.ScheduledChoreSamples.FailInitialChore extends ScheduledChore
| Constructor and Description |
|---|
FailInitialChore(String name,
int period,
int failThreshold) |
FailInitialChore(String name,
Stoppable stopper,
int period,
int failThreshold) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
chore() |
protected boolean |
initialChore() |
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, isInitialChoreComplete, isScheduled, run, toString, triggerNowpublic 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, Stoppable stopper, int period, int failThreshold)
protected boolean initialChore()
initialChore in class ScheduledChoreprotected void chore()
chore in class ScheduledChoreCopyright © 2007–2019 Cloudera. All rights reserved.