Class RequireSnapshotFeatureStateAspect

java.lang.Object
org.apache.hadoop.ozone.om.snapshot.RequireSnapshotFeatureStateAspect

public class RequireSnapshotFeatureStateAspect extends Object
'Aspect' for checking whether snapshot feature is enabled. All methods annotated with the specific annotation will have pre-processing done here to check layout version compatibility. Note: Append class to hadoop-ozone/ozone-manager/src/main/resources/META-INF/aop.xml if the annotation doesn't seem to take affect on other classes' methods.
  • Constructor Details

    • RequireSnapshotFeatureStateAspect

      public RequireSnapshotFeatureStateAspect()
  • Method Details

    • checkFeatureState

      public void checkFeatureState(org.aspectj.lang.JoinPoint joinPoint) throws IOException
      Throws:
      IOException
    • aspectOf

      public static RequireSnapshotFeatureStateAspect aspectOf()
      Note: Without this, it occasionally throws NoSuchMethodError when running the test.