public static class TestChoreService.ScheduledChoreSamples.CountingChore extends org.apache.hadoop.hbase.ScheduledChore
Modifier and Type | Field and Description |
---|---|
private int |
countOfChoreCalls |
private boolean |
outputOnTicks |
Constructor and Description |
---|
CountingChore(String name,
int period) |
CountingChore(String name,
org.apache.hadoop.hbase.Stoppable stopper,
int period) |
CountingChore(String name,
org.apache.hadoop.hbase.Stoppable stopper,
int period,
boolean outputOnTicks) |
Modifier and Type | Method and Description |
---|---|
protected void |
chore() |
int |
getCountOfChoreCalls() |
protected boolean |
initialChore() |
boolean |
isOutputtingOnTicks() |
private void |
outputTickCount() |
void |
setOutputOnTicks(boolean o) |
cancel, cancel, choreForTesting, cleanup, getChoreServicer, getInitialDelay, getName, getPeriod, getStopper, getTimeBetweenRuns, getTimeOfLastRun, getTimeOfThisRun, getTimeUnit, isInitialChoreComplete, isScheduled, run, setChoreServicer, toString, triggerNow
private int countOfChoreCalls
private boolean outputOnTicks
public CountingChore(String name, int period)
public CountingChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period)
public CountingChore(String name, org.apache.hadoop.hbase.Stoppable stopper, int period, boolean outputOnTicks)
protected boolean initialChore()
initialChore
in class org.apache.hadoop.hbase.ScheduledChore
protected void chore()
chore
in class org.apache.hadoop.hbase.ScheduledChore
private void outputTickCount()
public int getCountOfChoreCalls()
public boolean isOutputtingOnTicks()
public void setOutputOnTicks(boolean o)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.