use of org.apache.beam.model.jobmanagement.v1.JobApi.DescribePipelineOptionsRequest in project beam by apache.
the class InMemoryJobService method describePipelineOptions.
@Override
public void describePipelineOptions(DescribePipelineOptionsRequest request, StreamObserver<DescribePipelineOptionsResponse> responseObserver) {
LOG.trace("{} {}", DescribePipelineOptionsRequest.class.getSimpleName(), request);
try {
DescribePipelineOptionsResponse response = DescribePipelineOptionsResponse.newBuilder().addAllOptions(PipelineOptionsFactory.describe(PipelineOptionsFactory.getRegisteredOptions())).build();
responseObserver.onNext(response);
responseObserver.onCompleted();
} catch (Exception e) {
LOG.error("Error describing pipeline options", e);
responseObserver.onError(Status.INTERNAL.withCause(e).asException());
}
}
Aggregations