public class LicenseComponent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXPIRATION_DATE |
static java.lang.String |
FUSION_AI |
static java.lang.String |
FUSION_SERVER |
Constructor and Description |
---|
LicenseComponent(Ignite ignite) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getCapability(java.lang.String capability) |
java.util.Optional<java.util.Date> |
getExpirationDate() |
void |
init(com.lucidworks.apollo.client.resources.LicenseClientResource licenseClientResource) |
boolean |
isCapabilityLicensed(java.lang.String capability)
Helper method to check on capability.
|
boolean |
isFusionServerCapabilityLicensed() |
public static final java.lang.String FUSION_SERVER
public static final java.lang.String FUSION_AI
public static final java.lang.String EXPIRATION_DATE
@WhenReady public void init(com.lucidworks.apollo.client.resources.LicenseClientResource licenseClientResource)
public java.util.Optional<java.lang.String> getCapability(java.lang.String capability)
public java.util.Optional<java.util.Date> getExpirationDate()
public boolean isCapabilityLicensed(java.lang.String capability)
capability
- capability name, i.e. "fusion.ai"public boolean isFusionServerCapabilityLicensed()