public class NodeHealthScriptRunner
extends org.apache.hadoop.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.
|
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.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionprotected 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 - Copyright © 2016 Apache Software Foundation. All Rights Reserved.