Class ClusterStateLicenseService

java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.license.ClusterStateLicenseService
All Implemented Interfaces:
Closeable, AutoCloseable, ClusterStateListener, LifecycleComponent, SchedulerEngine.Listener, org.elasticsearch.core.Releasable, MutableLicenseService, LicenseService

public class ClusterStateLicenseService extends AbstractLifecycleComponent implements MutableLicenseService, ClusterStateListener, SchedulerEngine.Listener
Service responsible for managing LicensesMetadata.

On the master node, the service handles updating the cluster state when a new license is registered. It also listens on all nodes for cluster state updates, and updates XPackLicenseState when the license changes are detected in the cluster state.