public static class MultithreadedTestUtil.TestContext
extends java.lang.Object
| Constructor and Description |
|---|
TestContext(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addThread(MultithreadedTestUtil.TestThread t) |
protected Configuration |
getConf() |
void |
setStopFlag(boolean s) |
boolean |
shouldRun() |
void |
startThreads() |
void |
stop() |
void |
threadDone() |
void |
threadFailed(java.lang.Throwable t) |
void |
waitFor(long millis) |
protected Configuration getConf()
public boolean shouldRun()
public void addThread(MultithreadedTestUtil.TestThread t)
public void startThreads()
public void waitFor(long millis)
throws java.lang.Exception
java.lang.Exceptionpublic void threadFailed(java.lang.Throwable t)
public void threadDone()
public void setStopFlag(boolean s)
throws java.lang.Exception
java.lang.Exceptionpublic void stop()
throws java.lang.Exception
java.lang.Exception