Constructor and Description |
---|
DriverExample() |
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,
|
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 |
sendCompleteMessage(IDriverMessenger messenger) |
void |
workerMessageReceived(Any anyMessage,
int senderID)
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 void allWorkersJoined(java.util.List<JobMasterAPI.WorkerInfo> workerList)
IDriver
allWorkersJoined
in interface IDriver
public void sendCompleteMessage(IDriverMessenger messenger)
public void workerMessageReceived(Any anyMessage, int senderID)
IDriver
workerMessageReceived
in interface IDriver
anyMessage
- received message from the worker