Class LicensedFeature.Persistent

java.lang.Object
org.elasticsearch.license.LicensedFeature
org.elasticsearch.license.LicensedFeature.Persistent
Enclosing class:
LicensedFeature

public static class LicensedFeature.Persistent extends LicensedFeature
A Persistent feature is one that is tracked starting when the license is checked, and later may be untracked.
  • Method Details

    • checkAndStartTracking

      public boolean checkAndStartTracking(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.
    • startTracking

      public void startTracking(XPackLicenseState state, String contextName)
      Starts tracking the feature. This is an alternative to checkAndStartTracking(XPackLicenseState, String) where the license state has already been checked.
    • stopTracking

      public void stopTracking(XPackLicenseState state, String contextName)
      Stop tracking the feature so that the current time will be the last that it was used.