public abstract class BaseDriver extends java.lang.Object implements IDriver
Constructor and Description |
---|
BaseDriver() |
Modifier and Type | Method and Description |
---|---|
void |
allWorkersJoined(java.util.List<JobMasterAPI.WorkerInfo> workerList)
this method is invoked when all workers joined the job initially
and also, after each scale up operation,
|
abstract void |
execute(CDFWEnv exec) |
void |
execute(Config config,
IScaler scaler,
IDriverMessenger messenger)
After the job is submitted,
an instance of this method will be executed in the Job Master
|
void |
workerMessageReceived(Any anyMessage,
int senderWorkerID)
received a protocol buffer message from a worker
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessages, getState
public void execute(Config config, IScaler scaler, IDriverMessenger messenger)
IDriver
Implementing Driver program can communicate with the workers through provided IDriverMessenger and it can scale up/down the number of workers in the job by using IScaler
public abstract void execute(CDFWEnv exec)
public void workerMessageReceived(Any anyMessage, int senderWorkerID)
IDriver
workerMessageReceived
in interface IDriver
anyMessage
- received message from the workerpublic void allWorkersJoined(java.util.List<JobMasterAPI.WorkerInfo> workerList)
IDriver
allWorkersJoined
in interface IDriver