public class JMBarrierHandler extends java.lang.Object implements MessageHandler, BarrierResponder
Constructor and Description |
---|
JMBarrierHandler(RRServer rrServer,
BarrierMonitor barrierMonitor) |
Modifier and Type | Method and Description |
---|---|
void |
allArrived(JobMasterAPI.BarrierType barrierType)
this method is invoked when all workers arrived at the barrier
all workers shall be released from the barrier
|
void |
barrierFailed(JobMasterAPI.BarrierType barrierType,
JobMasterAPI.BarrierResult result)
this method is called when the barrier failed
all waiting workers shall be released with a failure message
|
void |
onMessage(RequestID requestID,
int workerId,
Message message)
Handles a specific message type
|
public JMBarrierHandler(RRServer rrServer, BarrierMonitor barrierMonitor)
public void onMessage(RequestID requestID, int workerId, Message message)
MessageHandler
onMessage
in interface MessageHandler
requestID
- request idworkerId
- worker idmessage
- protbuf messagepublic void allArrived(JobMasterAPI.BarrierType barrierType)
BarrierResponder
allArrived
in interface BarrierResponder
public void barrierFailed(JobMasterAPI.BarrierType barrierType, JobMasterAPI.BarrierResult result)
BarrierResponder
barrierFailed
in interface BarrierResponder