Class OMKeysDeleteResponse

Direct Known Subclasses:
OMKeysDeleteResponseWithFSO

public class OMKeysDeleteResponse extends AbstractOMKeyDeleteResponse
Response for DeleteKey request.
  • Constructor Details

    • OMKeysDeleteResponse

      public OMKeysDeleteResponse(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull List<org.apache.hadoop.ozone.om.helpers.OmKeyInfo> keyDeleteList, @Nonnull org.apache.hadoop.ozone.om.helpers.OmBucketInfo omBucketInfo, @Nonnull Map<String,org.apache.hadoop.ozone.om.helpers.OmKeyInfo> openKeyInfoMap)
    • OMKeysDeleteResponse

      public OMKeysDeleteResponse(@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 or it is a replay transaction. For a successful request, the other constructor should be used.
  • Method Details

    • checkAndUpdateDB

      public void checkAndUpdateDB(org.apache.hadoop.ozone.om.OMMetadataManager omMetadataManager, org.apache.hadoop.hdds.utils.db.BatchOperation batchOperation) throws IOException
      Description copied from class: OMClientResponse
      Check if omResponse status is OK. If yes, add to DB. For OmResponse with failure, this should do nothing. This method is not called in failure scenario in OM code.
      Overrides:
      checkAndUpdateDB in class OMClientResponse
      Throws:
      IOException
    • 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
    • getOmKeyInfoList

      public List<org.apache.hadoop.ozone.om.helpers.OmKeyInfo> getOmKeyInfoList()
    • getOmBucketInfo

      public org.apache.hadoop.ozone.om.helpers.OmBucketInfo getOmBucketInfo()
    • getOpenKeyInfoMap

      protected Map<String,org.apache.hadoop.ozone.om.helpers.OmKeyInfo> getOpenKeyInfoMap()