|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.nodemanager.NodeHealthScriptRunner
public class NodeHealthScriptRunner
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 |
| Constructor Summary | |
|---|---|
NodeHealthScriptRunner()
|
|
| Method Summary | |
|---|---|
String |
getHealthReport()
Returns output from health script. |
long |
getLastReportedTime()
Returns time stamp when node health script was last run. |
boolean |
isHealthy()
Gets the if the node is healthy or not |
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf)
|
protected void |
serviceStart()
Method used to start the Node health monitoring. |
protected void |
serviceStop()
Method used to terminate the node health monitoring service. |
static boolean |
shouldRun(org.apache.hadoop.conf.Configuration conf)
Method used to determine if or not node health monitoring service should be started or not. |
| 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, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NodeHealthScriptRunner()
| Method Detail |
|---|
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceException
protected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStop()
serviceStop in class org.apache.hadoop.service.AbstractServicepublic boolean isHealthy()
public String getHealthReport()
public long getLastReportedTime()
public static boolean shouldRun(org.apache.hadoop.conf.Configuration conf)
conf -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||