Class OMSnapshotPurgeResponse

java.lang.Object
org.apache.hadoop.ozone.om.response.OMClientResponse
org.apache.hadoop.ozone.om.response.snapshot.OMSnapshotPurgeResponse

public class OMSnapshotPurgeResponse extends OMClientResponse
Response for OMSnapshotPurgeRequest.
  • Constructor Details

    • OMSnapshotPurgeResponse

      public OMSnapshotPurgeResponse(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull List<String> snapshotDbKeys, Map<String,org.apache.hadoop.ozone.om.helpers.SnapshotInfo> updatedSnapInfos)
    • OMSnapshotPurgeResponse

      public OMSnapshotPurgeResponse(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse)
      Constructor for failed request. It should not be used for successful request.
  • Method Details

    • addToDBBatch

      protected 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
    • getUpdatedSnapInfos

      public Map<String,org.apache.hadoop.ozone.om.helpers.SnapshotInfo> getUpdatedSnapInfos()