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
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configurationprivate longprivate HealthCheckerprivate static final org.slf4j.Loggerprivate intprivate longprivate int -
Constructor Summary
ConstructorsConstructorDescriptionHealthCheckChore(int sleepTime, Stoppable stopper, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchore()The task to execute on each scheduled execution of the Choreprivate booleanMethods 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:ScheduledChoreThe task to execute on each scheduled execution of the Chore- Specified by:
chorein classScheduledChore
-
decideToStop
-