private static class TestChoreService.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() |
private void |
outputTickCount() |
cancel, cancel, choreForTesting, cleanup, getChoreService, getInitialDelay, getName, getPeriod, getStopper, getTimeBetweenRuns, getTimeOfLastRun, getTimeOfThisRun, getTimeUnit, isInitialChoreComplete, isScheduled, run, setChoreService, shutdown, shutdown, 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()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.