Class RequireSnapshotFeatureStateAspect
java.lang.Object
org.apache.hadoop.ozone.om.snapshot.RequireSnapshotFeatureStateAspect
'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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaspectOf()Note: Without this, it occasionally throws NoSuchMethodError when running the test.voidcheckFeatureState(org.aspectj.lang.JoinPoint joinPoint)
-
Constructor Details
-
RequireSnapshotFeatureStateAspect
public RequireSnapshotFeatureStateAspect()
-
-
Method Details
-
checkFeatureState
- Throws:
IOException
-
aspectOf
Note: Without this, it occasionally throws NoSuchMethodError when running the test.
-