Class OMDirectoryCreateResponseWithFSO


public class OMDirectoryCreateResponseWithFSO extends OmKeyResponse
Response for create directory request.
  • Constructor Details

    • OMDirectoryCreateResponseWithFSO

      public OMDirectoryCreateResponseWithFSO(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull long volumeId, @Nonnull long bucketId, @Nonnull org.apache.hadoop.ozone.om.helpers.OmDirectoryInfo dirInfo, @Nonnull List<org.apache.hadoop.ozone.om.helpers.OmDirectoryInfo> pDirInfos, @Nonnull OMDirectoryCreateRequest.Result result, @Nonnull org.apache.hadoop.ozone.om.helpers.BucketLayout bucketLayout, @Nonnull org.apache.hadoop.ozone.om.helpers.OmBucketInfo bucketInfo)
    • OMDirectoryCreateResponseWithFSO

      public OMDirectoryCreateResponseWithFSO(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull OMDirectoryCreateRequest.Result result)
      For when the request is not successful or the directory already exists.
  • 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