Package org.apache.hadoop.hbase
Class HealthCheckChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.HealthCheckChore
- All Implemented Interfaces:
Runnable
The Class HealthCheckChore for running health checker regularly.
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configuration
private long
private HealthChecker
private static final org.slf4j.Logger
private int
private long
private int
-
Constructor Summary
ConstructorDescriptionHealthCheckChore
(int sleepTime, Stoppable stopper, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
chore()
The task to execute on each scheduled execution of the Choreprivate boolean
Methods inherited from class org.apache.hadoop.hbase.ScheduledChore
cancel, cancel, choreForTesting, cleanup, getChoreService, getInitialDelay, getName, getPeriod, getStopper, getTimeBetweenRuns, getTimeOfLastRun, getTimeOfThisRun, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, setChoreService, shutdown, shutdown, toString, triggerNow
-
Field Details
-
LOG
-
healthChecker
-
config
-
threshold
-
numTimesUnhealthy
-
failureWindow
-
startWindow
-
-
Constructor Details
-
HealthCheckChore
public HealthCheckChore(int sleepTime, Stoppable stopper, org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
chore
Description copied from class:ScheduledChore
The task to execute on each scheduled execution of the Chore- Specified by:
chore
in classScheduledChore
-
decideToStop
-