public class CDFWRuntime extends java.lang.Object implements IReceiverFromDriver, IScalerListener, IAllJoinedListener
Constructor and Description |
---|
CDFWRuntime(Config cfg,
int wId,
IWorkerController controller)
Connected Dataflow Runtime
|
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, when all new workers joined the job, it is invoked
|
void |
driverMessageReceived(Any anyMessage)
received a broadcast message from the driver
|
boolean |
execute()
execute
|
void |
workersScaledDown(int instancesRemoved)
called when new instances of workers are removed from the job
|
void |
workersScaledUp(int instancesAdded)
called when new instances of workers are added the job
|
public CDFWRuntime(Config cfg, int wId, IWorkerController controller)
public boolean execute()
public void driverMessageReceived(Any anyMessage)
IReceiverFromDriver
driverMessageReceived
in interface IReceiverFromDriver
anyMessage
- received message from the driverpublic void workersScaledUp(int instancesAdded)
IScalerListener
workersScaledUp
in interface IScalerListener
public void workersScaledDown(int instancesRemoved)
IScalerListener
workersScaledDown
in interface IScalerListener
public void allWorkersJoined(java.util.List<JobMasterAPI.WorkerInfo> workerList)
IAllJoinedListener
allWorkersJoined
in interface IAllJoinedListener