Class NodeHealthScriptRunner
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.nodemanager.health.TimedHealthReporterService
org.apache.hadoop.yarn.server.nodemanager.health.NodeHealthScriptRunner
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,HealthReporter
The class which provides functionality of checking the health of the node
using the configured node health script and reporting back to the service
for which the health checker has been asked to report.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeHealthScriptRunnernewInstance(String scriptName, org.apache.hadoop.conf.Configuration conf) voidMethod used to terminate the health monitoring service.Methods inherited from class org.apache.hadoop.yarn.server.nodemanager.health.TimedHealthReporterService
getHealthReport, getLastHealthReportTime, isHealthy, serviceStart, setHealthyMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Method Details
-
newInstance
public static NodeHealthScriptRunner newInstance(String scriptName, org.apache.hadoop.conf.Configuration conf) -
serviceStop
Description copied from class:TimedHealthReporterServiceMethod used to terminate the health monitoring service.- Overrides:
serviceStopin classTimedHealthReporterService- Throws:
Exception
-