public class DefaultFailureMonitor extends java.lang.Object implements FailureMonitor
| Constructor and Description |
|---|
DefaultFailureMonitor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasFailed(Protos.TaskInfo task)
Determines whether the given
TaskInfohas failed forever or not. |
public boolean hasFailed(Protos.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