Package org.gridgain.internal.license
Interface LicenseFeatureChecker
public interface LicenseFeatureChecker
The function of checking the license capabilities.
Any major feature usage in GridGain should be protected by calling checkFeature(LicenseFeature).
TODO GG-40028 Check somehow that feature is allowed without direct calling of checkFeature(LicenseFeature).
For example:
licenseChecker.checkFeature(LicenseFeature.SQL_COPY);
To execute this code you must wrap the call with GridGain security context.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAllFeature(Set<LicenseFeature> features) Check all the given features are available in the license.voidcheckAnyFeature(Set<LicenseFeature> features) Check any the given features are available in the license.voidcheckFeature(LicenseFeature feature) Check the given feature is available in the license.Returns features set that is available in the license.
-
Method Details
-
enabledFeatures
Set<LicenseFeature> enabledFeatures()Returns features set that is available in the license.- Returns:
- enabled features set
-
checkFeature
Check the given feature is available in the license.- Parameters:
feature- Feature to check.- Throws:
MissingRequiredFeaturesException- If feature is not allowed by the license.
-
checkAllFeature
Check all the given features are available in the license.- Parameters:
features- Set of features to check.- Throws:
MissingRequiredFeaturesException- If one of the features is not available.
-
checkAnyFeature
Check any the given features are available in the license.- Parameters:
features- Set of features to check.- Throws:
MissingRequiredFeaturesException- If all features are not available.
-