public class JMDriverAgent extends java.lang.Object implements ISenderToDriver, MessageHandler
Constructor and Description |
---|
JMDriverAgent(RRClient rrClient,
int workerID) |
Modifier and Type | Method and Description |
---|---|
boolean |
addReceiverFromDriver(IReceiverFromDriver receiverFromDriver1)
only one IReceiverFromDriver can be added
if the second IReceiverFromDriver tried to be added, returns false
|
void |
onMessage(RequestID id,
int workerId,
Message message)
Handles a specific message type
|
boolean |
sendToDriver(Message message)
send a protocol buffer message to the driver in the job
|
public JMDriverAgent(RRClient rrClient, int workerID)
public boolean addReceiverFromDriver(IReceiverFromDriver receiverFromDriver1)
public boolean sendToDriver(Message message)
ISenderToDriver
sendToDriver
in interface ISenderToDriver
public void onMessage(RequestID id, int workerId, Message message)
MessageHandler
onMessage
in interface MessageHandler
id
- request idworkerId
- worker idmessage
- protbuf message