use of edu.iu.dsc.tws.proto.jobmaster.JobMasterAPI.ListWorkersRequest in project twister2 by DSC-SPIDAL.
the class JMWorkerController method sendWorkerListRequest.
private boolean sendWorkerListRequest(ListWorkersRequest.RequestType requestType, long timeLimit) {
ListWorkersRequest listRequest = ListWorkersRequest.newBuilder().setWorkerID(workerInfo.getWorkerID()).setRequestType(requestType).build();
LOG.fine("Sending ListWorkers message to the master: \n" + listRequest);
try {
rrClient.sendRequestWaitResponse(listRequest, timeLimit);
return true;
} catch (BlockingSendException e) {
LOG.log(Level.SEVERE, e.getMessage(), e);
return false;
}
}
Aggregations