public class JobFailureWatcher extends java.lang.Object implements IWorkerFailureListener, InitBarrierListener
Constructor and Description |
---|
JobFailureWatcher() |
Modifier and Type | Method and Description |
---|---|
void |
addJobFaultListener(JobFaultListener jobFaultListener) |
void |
allArrived()
this is only called for INIT barrier
|
void |
failed(int workerID)
let the listener know that a worker failed
|
boolean |
isJobFaulty() |
void |
restarted(JobMasterAPI.WorkerInfo workerInfo)
let the listener know that previously failed worker rejoined the job
|
public boolean isJobFaulty()
public void addJobFaultListener(JobFaultListener jobFaultListener)
public void allArrived()
allArrived
in interface InitBarrierListener
public void failed(int workerID)
IWorkerFailureListener
failed
in interface IWorkerFailureListener
public void restarted(JobMasterAPI.WorkerInfo workerInfo)
IWorkerFailureListener
restarted
in interface IWorkerFailureListener