Class OMSnapshotMoveDeletedKeysResponse

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

public class OMSnapshotMoveDeletedKeysResponse extends OMClientResponse
Response for OMSnapshotMoveDeletedKeysRequest.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OMSnapshotMoveDeletedKeysResponse(org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse)
    For when the request is not successful.
    OMSnapshotMoveDeletedKeysResponse(org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, org.apache.hadoop.ozone.om.helpers.SnapshotInfo fromSnapshot, org.apache.hadoop.ozone.om.helpers.SnapshotInfo nextSnapshot, List<org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SnapshotMoveKeyInfos> nextDBKeysList, List<org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SnapshotMoveKeyInfos> reclaimKeysList, List<org.apache.hadoop.hdds.protocol.proto.HddsProtos.KeyValue> renamedKeysList, List<String> movedDirs, long bucketId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addToDBBatch(org.apache.hadoop.ozone.om.OMMetadataManager omMetadataManager, org.apache.hadoop.hdds.utils.db.BatchOperation batchOperation)
    Implement logic to add the response to batch.
    static org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo
    createRepeatedOmKeyInfo(List<org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.KeyInfo> keyInfoList, long bucketId)
     

    Methods inherited from class org.apache.hadoop.ozone.om.response.OMClientResponse

    checkAndUpdateDB, checkStatusNotOK, getBucketLayout, getOmLockDetails, getOMResponse, setOmLockDetails

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OMSnapshotMoveDeletedKeysResponse

      public OMSnapshotMoveDeletedKeysResponse(org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull org.apache.hadoop.ozone.om.helpers.SnapshotInfo fromSnapshot, org.apache.hadoop.ozone.om.helpers.SnapshotInfo nextSnapshot, List<org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SnapshotMoveKeyInfos> nextDBKeysList, List<org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SnapshotMoveKeyInfos> reclaimKeysList, List<org.apache.hadoop.hdds.protocol.proto.HddsProtos.KeyValue> renamedKeysList, List<String> movedDirs, long bucketId)
    • OMSnapshotMoveDeletedKeysResponse

      public OMSnapshotMoveDeletedKeysResponse(@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

      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
    • createRepeatedOmKeyInfo

      public static org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo createRepeatedOmKeyInfo(List<org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.KeyInfo> keyInfoList, long bucketId) throws IOException
      Throws:
      IOException