public class TestNodeHealthCheckChore extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestNodeHealthCheckChore.StoppableImplementation
Simple helper class that just keeps track of whether or not its stopped.
|
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private String |
eol |
private File |
healthScriptFile |
private static org.slf4j.Logger |
LOG |
private static int |
SCRIPT_TIMEOUT |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestNodeHealthCheckChore() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
private void |
createScript(String scriptStr,
boolean setExecutable) |
private org.apache.hadoop.conf.Configuration |
getConfForNodeHealthScript() |
void |
healthCheckerTest(String script,
org.apache.hadoop.hbase.HealthChecker.HealthCheckerExitStatus expectedStatus) |
void |
testHealthCheckerFail() |
void |
testHealthCheckerSuccess() |
void |
testHealthCheckerTimeout() |
void |
testRSHealthChore() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static final int SCRIPT_TIMEOUT
private File healthScriptFile
public TestNodeHealthCheckChore()
public void cleanUp() throws IOException
IOException
public void testHealthCheckerSuccess() throws Exception
Exception
public void testHealthCheckerFail() throws Exception
Exception
public void testHealthCheckerTimeout() throws Exception
Exception
public void healthCheckerTest(String script, org.apache.hadoop.hbase.HealthChecker.HealthCheckerExitStatus expectedStatus) throws Exception
Exception
public void testRSHealthChore() throws Exception
Exception
private void createScript(String scriptStr, boolean setExecutable) throws Exception
Exception
private org.apache.hadoop.conf.Configuration getConfForNodeHealthScript() throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.