java.lang.Object
org.elasticsearch.license.LicensedFeature
org.elasticsearch.license.LicensedFeature.Persistent
- Enclosing class:
LicensedFeature
A Persistent feature is one that is tracked starting when the license is checked, and later may be untracked.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.license.LicensedFeature
LicensedFeature.Momentary, LicensedFeature.Persistent -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckAndStartTracking(XPackLicenseState state, String contextName) Checks whether the feature is allowed by the given license state, and begins tracking the feature as "on" for the given context.voidstartTracking(XPackLicenseState state, String contextName) Starts tracking the feature.voidstopTracking(XPackLicenseState state, String contextName) Stop tracking the feature so that the current time will be the last that it was used.Methods inherited from class org.elasticsearch.license.LicensedFeature
checkWithoutTracking, equals, getFamily, getMinimumOperationMode, getName, hashCode, isNeedsActive, momentary, momentaryLenient, persistent
-
Method Details
-
checkAndStartTracking
Checks whether the feature is allowed by the given license state, and begins tracking the feature as "on" for the given context. -
startTracking
Starts tracking the feature. This is an alternative tocheckAndStartTracking(XPackLicenseState, String)where the license state has already been checked. -
stopTracking
Stop tracking the feature so that the current time will be the last that it was used.
-