Class OMFileCreateResponseWithFSO

Direct Known Subclasses:
OMKeyCreateResponseWithFSO

public class OMFileCreateResponseWithFSO extends OMFileCreateResponse
Response for create file request - prefix layout.
  • Constructor Details

    • OMFileCreateResponseWithFSO

      public OMFileCreateResponseWithFSO(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull org.apache.hadoop.ozone.om.helpers.OmKeyInfo omKeyInfo, @Nonnull List<org.apache.hadoop.ozone.om.helpers.OmDirectoryInfo> parentDirInfos, long openKeySessionID, @Nonnull org.apache.hadoop.ozone.om.helpers.OmBucketInfo omBucketInfo, @Nonnull long volumeId)
    • OMFileCreateResponseWithFSO

      public OMFileCreateResponseWithFSO(@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 omMetadataMgr, org.apache.hadoop.hdds.utils.db.BatchOperation batchOp) throws IOException
      Description copied from class: OMClientResponse
      Implement logic to add the response to batch. This function should be called from checkAndUpdateDB only.
      Overrides:
      addToDBBatch in class OMKeyCreateResponse
      Throws:
      IOException
    • getBucketLayout

      public org.apache.hadoop.ozone.om.helpers.BucketLayout getBucketLayout()
      Overrides:
      getBucketLayout in class OmKeyResponse