public class NodeHealthScriptRunner
extends org.apache.hadoop.yarn.service.AbstractService
| Constructor and Description |
|---|
NodeHealthScriptRunner() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 - Copyright © 2014 Apache Software Foundation. All Rights Reserved.