use of org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.PrepareStatusRequest in project ozone by apache.
the class OzoneManagerProtocolClientSideTranslatorPB method getOzoneManagerPrepareStatus.
@Override
public PrepareStatusResponse getOzoneManagerPrepareStatus(long txnId) throws IOException {
PrepareStatusRequest prepareStatusRequest = PrepareStatusRequest.newBuilder().setTxnID(txnId).build();
OMRequest omRequest = createOMRequest(Type.PrepareStatus).setPrepareStatusRequest(prepareStatusRequest).build();
PrepareStatusResponse prepareStatusResponse = handleError(submitRequest(omRequest)).getPrepareStatusResponse();
return prepareStatusResponse;
}
Aggregations