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

public class NodeHealthScriptRunner extends TimedHealthReporterService
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 Type
    Method
    Description
    newInstance(String scriptName, org.apache.hadoop.conf.Configuration conf)
     
    void
    Method used to terminate the health monitoring service.

    Methods inherited from class org.apache.hadoop.yarn.server.nodemanager.health.TimedHealthReporterService

    getHealthReport, getLastHealthReportTime, isHealthy, serviceStart, setHealthy

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait