Search in sources :

Example 1 with PrepareStatusRequest

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;
}
Also used : OMRequest(org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMRequest) PrepareStatusRequest(org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.PrepareStatusRequest) PrepareStatusResponse(org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.PrepareStatusResponse)

Aggregations

OMRequest (org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMRequest)1 PrepareStatusRequest (org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.PrepareStatusRequest)1 PrepareStatusResponse (org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.PrepareStatusResponse)1