use of org.apache.beam.runners.dataflow.worker.windmill.Windmill.CommitWorkResponse in project beam by apache.
the class FakeWindmillServer method commitWork.
@Override
public CommitWorkResponse commitWork(Windmill.CommitWorkRequest request) {
LOG.debug("commitWorkRequest: {}", request);
validateCommitWorkRequest(request);
for (ComputationCommitWorkRequest computationRequest : request.getRequestsList()) {
for (WorkItemCommitRequest commit : computationRequest.getRequestsList()) {
commitsReceived.put(commit.getWorkToken(), commit);
}
}
CommitWorkResponse response = CommitWorkResponse.newBuilder().build();
LOG.debug("commitWorkResponse: {}", response);
return response;
}
Aggregations