Interface ValidationContext


@Evolving public interface ValidationContext
A context that contains useful information for request validator instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.ozone.om.helpers.BucketLayout
    getBucketLayout(String volumeName, String bucketName)
    Gets the BucketLayout of the given bucket.
    of(org.apache.hadoop.ozone.upgrade.LayoutVersionManager versionManager, org.apache.hadoop.ozone.om.OMMetadataManager omMetadataManager)
    Creates a context object based on the given parameters.
    org.apache.hadoop.ozone.upgrade.LayoutVersionManager
    Gets the LayoutVersionManager of the service, so that a pre finalization validation can check if the layout version it belongs to is finalized already or not.
  • Method Details

    • versionManager

      org.apache.hadoop.ozone.upgrade.LayoutVersionManager versionManager()
      Gets the LayoutVersionManager of the service, so that a pre finalization validation can check if the layout version it belongs to is finalized already or not.
      Returns:
      the LayoutVersionManager of the service
    • getBucketLayout

      org.apache.hadoop.ozone.om.helpers.BucketLayout getBucketLayout(String volumeName, String bucketName) throws IOException
      Gets the BucketLayout of the given bucket. In case of a link bucket the method returns the layout of the source bucket.
      Returns:
      BucketLayout of the given bucket.
      Throws:
      IOException
    • of

      static ValidationContext of(org.apache.hadoop.ozone.upgrade.LayoutVersionManager versionManager, org.apache.hadoop.ozone.om.OMMetadataManager omMetadataManager)
      Creates a context object based on the given parameters.
      Parameters:
      versionManager - the LayoutVersionManager of the service
      Returns:
      the ValidationContext specified by the parameters.