public class TestingFailureMonitor extends java.lang.Object implements FailureMonitor
Allows you to specify which TaskInfos will be treated as having failed. Any non-specified TaskInfos
will be treated as stopped.
| Constructor and Description |
|---|
TestingFailureMonitor(TaskInfo... failed) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasFailed(TaskInfo task)
Determines whether the given
TaskInfohas failed forever or not. |
void |
setFailedList(TaskInfo... failed) |
public void setFailedList(TaskInfo... failed)
public boolean hasFailed(TaskInfo task)
FailureMonitorTaskInfohas failed forever or not. This hook will be first called with a
given TaskInfo the first time that TaskInfo stops running. It may be called additional times
after that.hasFailed in interface FailureMonitortask - The TaskInfo that is no longer runningTaskInfo should be considered permanently lost & restarted elsewhere, false if it's
machine might still come back