@InterfaceAudience.Private public class HealthCheckChore extends ScheduledChore
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
config |
private long |
failureWindow |
private HealthChecker |
healthChecker |
private static org.slf4j.Logger |
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, getChoreService, getInitialDelay, getName, getPeriod, getStopper, getTimeBetweenRuns, getTimeOfLastRun, getTimeOfThisRun, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, setChoreService, shutdown, shutdown, toString, triggerNow
private static final org.slf4j.Logger 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–2020 The Apache Software Foundation. All rights reserved.