public class HealthCheckChore extends ScheduledChore
ScheduledChore.ChoreServicer
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
config |
private long |
failureWindow |
private HealthChecker |
healthChecker |
private static org.apache.commons.logging.Log |
LOG |
private int |
numTimesUnhealthy |
private long |
startWindow |
private int |
threshold |
Constructor and Description |
---|
HealthCheckChore(int sleepTime,
Stoppable stopper,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
private boolean |
decideToStop() |
cancel, cancel, choreForTesting, cleanup, getChoreServicer, getInitialDelay, getName, getPeriod, getStopper, getTimeBetweenRuns, getTimeOfLastRun, getTimeOfThisRun, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, setChoreServicer, toString, triggerNow
private static final org.apache.commons.logging.Log LOG
private HealthChecker healthChecker
private org.apache.hadoop.conf.Configuration config
private int threshold
private int numTimesUnhealthy
private long failureWindow
private long startWindow
public HealthCheckChore(int sleepTime, Stoppable stopper, org.apache.hadoop.conf.Configuration conf)
protected void chore()
ScheduledChore
chore
in class ScheduledChore
private boolean decideToStop()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.