Search in sources :

Example 1 with ListWorkersRequest

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;
    }
}
Also used : BlockingSendException(edu.iu.dsc.tws.api.exceptions.net.BlockingSendException) ListWorkersRequest(edu.iu.dsc.tws.proto.jobmaster.JobMasterAPI.ListWorkersRequest)

Aggregations

BlockingSendException (edu.iu.dsc.tws.api.exceptions.net.BlockingSendException)1 ListWorkersRequest (edu.iu.dsc.tws.proto.jobmaster.JobMasterAPI.ListWorkersRequest)1