Class OMSnapshotMoveTableKeysResponse

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

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

    Constructors
    Constructor
    Description
    OMSnapshotMoveTableKeysResponse(org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse)
    For when the request is not successful.
    OMSnapshotMoveTableKeysResponse(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, long bucketId, List<org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SnapshotMoveKeyInfos> deletedKeys, List<org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SnapshotMoveKeyInfos> deletedDirs, List<org.apache.hadoop.hdds.protocol.proto.HddsProtos.KeyValue> renamedKeys)
     
  • 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.

    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

    • OMSnapshotMoveTableKeysResponse

      public OMSnapshotMoveTableKeysResponse(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, long bucketId, List<org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SnapshotMoveKeyInfos> deletedKeys, List<org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SnapshotMoveKeyInfos> deletedDirs, List<org.apache.hadoop.hdds.protocol.proto.HddsProtos.KeyValue> renamedKeys)
    • OMSnapshotMoveTableKeysResponse

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