class HealthChecker extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
HealthChecker.HealthCheckerExitStatus |
Modifier and Type | Field and Description |
---|---|
private static String |
ERROR_PATTERN
Pattern used for searching in the output of the node health script
|
private String |
exceptionStackTrace |
private String |
healthCheckScript |
private static org.apache.commons.logging.Log |
LOG |
private long |
scriptTimeout |
private org.apache.hadoop.util.Shell.ShellCommandExecutor |
shexec |
Constructor and Description |
---|
HealthChecker() |
Modifier and Type | Method and Description |
---|---|
HealthReport |
checkHealth() |
private String |
getHealthReport(HealthChecker.HealthCheckerExitStatus status) |
private boolean |
hasErrors(String output) |
void |
init(String location,
long timeout)
Initialize.
|
private static final org.apache.commons.logging.Log LOG
private org.apache.hadoop.util.Shell.ShellCommandExecutor shexec
private String exceptionStackTrace
private static final String ERROR_PATTERN
private String healthCheckScript
private long scriptTimeout
public void init(String location, long timeout)
configuration
- public HealthReport checkHealth()
private boolean hasErrors(String output)
private String getHealthReport(HealthChecker.HealthCheckerExitStatus status)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.