Class OMSetSecretResponse

java.lang.Object
org.apache.hadoop.ozone.om.response.OMClientResponse
org.apache.hadoop.ozone.om.response.s3.security.OMSetSecretResponse

public class OMSetSecretResponse extends OMClientResponse
Response for SetSecret request.
  • Constructor Details

    • OMSetSecretResponse

      public OMSetSecretResponse(@Nullable String accessId, @Nullable org.apache.hadoop.ozone.om.helpers.S3SecretValue s3SecretValue, @Nonnull org.apache.hadoop.ozone.om.S3SecretManager secretManager, @Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse)
    • OMSetSecretResponse

      public OMSetSecretResponse(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse)
      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