Class OMOpenKeysDeleteResponse


public class OMOpenKeysDeleteResponse extends AbstractOMKeyDeleteResponse
Handles responses to move open keys from the open key table to the delete table. Modifies the open key table and delete table databases.
  • Constructor Details

    • OMOpenKeysDeleteResponse

      public OMOpenKeysDeleteResponse(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull Map<String,org.apache.commons.lang3.tuple.Pair<Long,org.apache.hadoop.ozone.om.helpers.OmKeyInfo>> keysToDelete, @Nonnull org.apache.hadoop.ozone.om.helpers.BucketLayout bucketLayout)
    • OMOpenKeysDeleteResponse

      public OMOpenKeysDeleteResponse(@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 AbstractOMKeyDeleteResponse
      Throws:
      IOException