use of com.facebook.buck.distributed.thrift.GetTargetsToBuildRequest in project buck by facebook.
the class ThriftCoordinatorClient method getTargetsToBuild.
public GetTargetsToBuildResponse getTargetsToBuild(String minionId) throws IOException {
LOG.debug(String.format("Minion [%s] is requesting targets to build.", minionId));
Preconditions.checkNotNull(client, "Client was not started.");
GetTargetsToBuildRequest request = new GetTargetsToBuildRequest().setMinionId(minionId).setStampedeId(stampedeId);
try {
GetTargetsToBuildResponse response = client.getTargetsToBuild(request);
return response;
} catch (TException e) {
throw new ThriftException(e);
}
}
Aggregations