java.lang.Object
org.elasticsearch.license.LicensedFeature
- Direct Known Subclasses:
LicensedFeature.Momentary,LicensedFeature.Persistent
A base class for checking licensed features against the license.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA Momentary feature is one that is tracked at the moment the license is checked.static classA Persistent feature is one that is tracked starting when the license is checked, and later may be untracked. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLicensedFeature(String family, String name, License.OperationMode minimumOperationMode, boolean needsActive) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturns whether the feature is allowed by the current license without affecting feature tracking.booleangetName()inthashCode()booleanstatic LicensedFeature.Momentarymomentary(String family, String name, License.OperationMode licenseLevel) Create a momentary feature for the given license levelstatic LicensedFeature.MomentarymomentaryLenient(String family, String name, License.OperationMode licenseLevel) Deprecated.static LicensedFeature.Persistentpersistent(String family, String name, License.OperationMode licenseLevel) Create a persistent feature for the given license level
-
Constructor Details
-
LicensedFeature
protected LicensedFeature(String family, String name, License.OperationMode minimumOperationMode, boolean needsActive)
-
-
Method Details
-
getFamily
-
getName
-
getMinimumOperationMode
-
isNeedsActive
public boolean isNeedsActive() -
momentary
public static LicensedFeature.Momentary momentary(String family, String name, License.OperationMode licenseLevel) Create a momentary feature for the given license level -
persistent
public static LicensedFeature.Persistent persistent(String family, String name, License.OperationMode licenseLevel) Create a persistent feature for the given license level -
momentaryLenient
@Deprecated public static LicensedFeature.Momentary momentaryLenient(String family, String name, License.OperationMode licenseLevel) Deprecated.Creates a momentary feature, but one that is lenient as to whether the license needs to be active to allow the feature. -
checkWithoutTracking
Returns whether the feature is allowed by the current license without affecting feature tracking. -
equals
-
hashCode
public int hashCode()
-