public class MPIWorkerManager extends java.lang.Object implements IWorkerFailureListener, IJobMasterFailureListener
Constructor and Description |
---|
MPIWorkerManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(Config config,
JobAPI.Job job,
IWorkerController workerController,
IPersistentVolume persistentVolume,
IVolatileVolume volatileVolume,
IWorker managedWorker) |
void |
failed(int wID)
let the listener know that a worker failed
|
void |
jmFailed()
informs when the job master fails.
|
void |
jmRestarted(java.lang.String jobMasterAddress)
informs when the job master rejoins after failure
|
void |
restarted(JobMasterAPI.WorkerInfo workerInfo)
let the listener know that previously failed worker rejoined the job
|
public boolean execute(Config config, JobAPI.Job job, IWorkerController workerController, IPersistentVolume persistentVolume, IVolatileVolume volatileVolume, IWorker managedWorker)
public void jmFailed()
IJobMasterFailureListener
jmFailed
in interface IJobMasterFailureListener
public void jmRestarted(java.lang.String jobMasterAddress)
IJobMasterFailureListener
jmRestarted
in interface IJobMasterFailureListener
public void failed(int wID)
IWorkerFailureListener
failed
in interface IWorkerFailureListener
public void restarted(JobMasterAPI.WorkerInfo workerInfo)
IWorkerFailureListener
restarted
in interface IWorkerFailureListener