Module org.elasticsearch.xcore
Interface MutableLicenseService
- All Superinterfaces:
AutoCloseable,Closeable,LicenseService,LifecycleComponent,org.elasticsearch.core.Releasable
- All Known Implementing Classes:
ClusterStateLicenseService
Interface to update the current license.
This interface is not intended to be implemented by alternative implementations and exists for internal use only.
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterLicense(PutLicenseRequest request, ActionListener<PutLicenseResponse> listener) Creates or updates the current license as defined by the request.voidremoveLicense(org.elasticsearch.core.TimeValue masterNodeTimeout, org.elasticsearch.core.TimeValue ackTimeout, ActionListener<? extends AcknowledgedResponse> listener) Removes the current license.voidstartBasicLicense(PostStartBasicRequest request, ActionListener<PostStartBasicResponse> listener) Installs a basic license.voidstartTrialLicense(PostStartTrialRequest request, ActionListener<PostStartTrialResponse> listener) Installs a trial license.Methods inherited from interface org.elasticsearch.license.LicenseService
getLicenseMethods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, start, stopMethods inherited from interface org.elasticsearch.core.Releasable
close
-
Method Details
-
registerLicense
Creates or updates the current license as defined by the request. -
removeLicense
void removeLicense(org.elasticsearch.core.TimeValue masterNodeTimeout, org.elasticsearch.core.TimeValue ackTimeout, ActionListener<? extends AcknowledgedResponse> listener) Removes the current license. Implementations should remove the current license and ensure that attempts to read returnsLicensesMetadata.LICENSE_TOMBSTONEif a license was removed. Additionally theXPackLicenseStatemust be updated. -
startBasicLicense
void startBasicLicense(PostStartBasicRequest request, ActionListener<PostStartBasicResponse> listener) Installs a basic license. -
startTrialLicense
void startTrialLicense(PostStartTrialRequest request, ActionListener<PostStartTrialResponse> listener) Installs a trial license.
-