public static class MultithreadedTestUtil.TestContext extends Object
| Constructor and Description |
|---|
TestContext(org.apache.hadoop.conf.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addThread(MultithreadedTestUtil.TestThread t) |
protected org.apache.hadoop.conf.Configuration |
getConf() |
void |
setStopFlag(boolean s) |
boolean |
shouldRun() |
void |
startThreads() |
void |
stop() |
void |
threadDone() |
void |
threadFailed(Throwable t) |
void |
waitFor(long millis) |
public TestContext(org.apache.hadoop.conf.Configuration configuration)
protected org.apache.hadoop.conf.Configuration getConf()
public boolean shouldRun()
public void addThread(MultithreadedTestUtil.TestThread t)
public void startThreads()
public void threadFailed(Throwable t)
public void threadDone()
public void setStopFlag(boolean s) throws Exception
ExceptionCopyright © 2007–2019 Cloudera. All rights reserved.