use of com.facebook.buck.distributed.thrift.MultiGetBuildSlaveRealTimeLogsRequest in project buck by facebook.
the class DistBuildService method fetchSlaveLogLines.
public MultiGetBuildSlaveRealTimeLogsResponse fetchSlaveLogLines(final StampedeId stampedeId, final List<LogLineBatchRequest> logLineRequests) throws IOException {
MultiGetBuildSlaveRealTimeLogsRequest getLogLinesRequest = new MultiGetBuildSlaveRealTimeLogsRequest();
getLogLinesRequest.setStampedeId(stampedeId);
getLogLinesRequest.setBatches(logLineRequests);
FrontendRequest request = new FrontendRequest();
request.setType(FrontendRequestType.GET_BUILD_SLAVE_REAL_TIME_LOGS);
request.setMultiGetBuildSlaveRealTimeLogsRequest(getLogLinesRequest);
FrontendResponse response = makeRequestChecked(request);
return response.getMultiGetBuildSlaveRealTimeLogsResponse();
}
Aggregations