public class DriverMessenger extends java.lang.Object implements IDriverMessenger
Constructor and Description |
---|
DriverMessenger(WorkerMonitor workerMonitor) |
Modifier and Type | Method and Description |
---|---|
boolean |
broadcastToAllWorkers(Message message)
send this message to all workers in the job
|
boolean |
sendToWorker(Message message,
java.lang.Integer workerID)
send a protocol buffer message to a worker in the job
|
boolean |
sendToWorkerList(Message message,
java.util.List<java.lang.Integer> workerList)
send a protocol buffer message to a list of workers in the job
|
public DriverMessenger(WorkerMonitor workerMonitor)
public boolean broadcastToAllWorkers(Message message)
broadcastToAllWorkers
in interface IDriverMessenger
public boolean sendToWorkerList(Message message, java.util.List<java.lang.Integer> workerList)
IDriverMessenger
sendToWorkerList
in interface IDriverMessenger
public boolean sendToWorker(Message message, java.lang.Integer workerID)
IDriverMessenger
sendToWorker
in interface IDriverMessenger