public static class TestChoreService.ScheduledChoreSamples.CountingChore extends ScheduledChore
| Constructor and Description |
|---|
CountingChore(String name,
int period) |
CountingChore(String name,
Stoppable stopper,
int period) |
CountingChore(String name,
Stoppable stopper,
int period,
boolean outputOnTicks) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
chore() |
int |
getCountOfChoreCalls() |
protected boolean |
initialChore() |
boolean |
isOutputtingOnTicks() |
void |
setOutputOnTicks(boolean o) |
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, isInitialChoreComplete, isScheduled, run, toString, triggerNowpublic CountingChore(String name, int period)
public CountingChore(String name, Stoppable stopper, int period)
public CountingChore(String name, Stoppable stopper, int period, boolean outputOnTicks)
protected boolean initialChore()
initialChore in class ScheduledChoreprotected void chore()
chore in class ScheduledChorepublic int getCountOfChoreCalls()
public boolean isOutputtingOnTicks()
public void setOutputOnTicks(boolean o)
Copyright © 2007–2019 Cloudera. All rights reserved.