|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.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.yarn.service.Service |
|---|
org.apache.hadoop.yarn.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. |
void |
init(org.apache.hadoop.conf.Configuration conf)
|
boolean |
isHealthy()
Gets the if the node is healthy or not |
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. |
void |
start()
Method used to start the Node health monitoring. |
void |
stop()
Method used to terminate the node health monitoring service. |
| Methods inherited from class org.apache.hadoop.yarn.service.AbstractService |
|---|
getConfig, getName, getServiceState, getStartTime, register, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeHealthScriptRunner()
| Method Detail |
|---|
public void init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class org.apache.hadoop.yarn.service.AbstractServicepublic void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class org.apache.hadoop.yarn.service.AbstractServicepublic void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class org.apache.hadoop.yarn.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 | |||||||||