public class NeverFailureMonitor extends java.lang.Object implements FailureMonitor
FailureMonitor that never fails tasks.
This is equivalent to disabling the failure detection feature.| Constructor and Description |
|---|
NeverFailureMonitor() |
| 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