Class LicenseService

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

public class LicenseService
extends AbstractLifecycleComponent
implements 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.