Class S3InitiateMultipartUploadResponse

java.lang.Object
org.apache.hadoop.ozone.om.response.OMClientResponse
org.apache.hadoop.ozone.om.response.key.OmKeyResponse
org.apache.hadoop.ozone.om.response.s3.multipart.S3InitiateMultipartUploadResponse
Direct Known Subclasses:
S3InitiateMultipartUploadResponseWithFSO

public class S3InitiateMultipartUploadResponse extends OmKeyResponse
Response for S3 Initiate Multipart Upload request.
  • Constructor Details

    • S3InitiateMultipartUploadResponse

      public S3InitiateMultipartUploadResponse(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull org.apache.hadoop.ozone.om.helpers.OmMultipartKeyInfo omMultipartKeyInfo, @Nonnull org.apache.hadoop.ozone.om.helpers.OmKeyInfo omKeyInfo, @Nonnull org.apache.hadoop.ozone.om.helpers.BucketLayout bucketLayout)
    • S3InitiateMultipartUploadResponse

      public S3InitiateMultipartUploadResponse(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull org.apache.hadoop.ozone.om.helpers.BucketLayout bucketLayout)
      For when the request is not successful. For a successful request, the other constructor should be used.
  • Method Details

    • addToDBBatch

      public void addToDBBatch(org.apache.hadoop.ozone.om.OMMetadataManager omMetadataManager, org.apache.hadoop.hdds.utils.db.BatchOperation batchOperation) throws IOException
      Description copied from class: OMClientResponse
      Implement logic to add the response to batch. This function should be called from checkAndUpdateDB only.
      Specified by:
      addToDBBatch in class OMClientResponse
      Throws:
      IOException
    • getOmMultipartKeyInfo

      public org.apache.hadoop.ozone.om.helpers.OmMultipartKeyInfo getOmMultipartKeyInfo()
    • getOmKeyInfo

      public org.apache.hadoop.ozone.om.helpers.OmKeyInfo getOmKeyInfo()