Package org.gridgain.internal.license
Class GridLicenseManager
java.lang.Object
org.apache.ignite.internal.event.AbstractEventProducer<org.gridgain.internal.license.event.LicenseEvent,org.gridgain.internal.license.event.LicenseEventParameters>
org.gridgain.internal.license.GridLicenseManager
- All Implemented Interfaces:
org.apache.ignite.internal.event.EventProducer<org.gridgain.internal.license.event.LicenseEvent,,org.gridgain.internal.license.event.LicenseEventParameters> org.apache.ignite.internal.lang.Debuggable,org.apache.ignite.internal.manager.IgniteComponent,org.apache.ignite.internal.systemview.api.SystemViewProvider
public class GridLicenseManager
extends org.apache.ignite.internal.event.AbstractEventProducer<org.gridgain.internal.license.event.LicenseEvent,org.gridgain.internal.license.event.LicenseEventParameters>
implements org.apache.ignite.internal.manager.IgniteComponent, org.apache.ignite.internal.systemview.api.SystemViewProvider
License manager.
-
Field Summary
Fields inherited from interface org.apache.ignite.internal.lang.Debuggable
INDENTATION -
Constructor Summary
ConstructorsConstructorDescriptionGridLicenseManager(org.gridgain.internal.license.configuration.LicenseConfiguration licenseConfiguration, org.apache.ignite.internal.cluster.management.ClusterManagementGroupManager cmgManager, org.apache.ignite.internal.cluster.management.topology.LogicalTopology logicalTopology, org.apache.ignite.internal.cluster.management.ClusterStopper clusterStopper, ScheduledExecutorService scheduledExecutor, org.apache.ignite.internal.metrics.MetricManager metricManager, Consumer<org.apache.ignite.internal.eventlog.api.Event> notifier, LicenseProviderFactory licenseProviderFactory) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionapplyNewLicense(String license) Applies a new license.voidChecks that the current license is valid for limits.Returns the current license in JSON format.Method to trigger refresh of a license.startAsync(org.apache.ignite.internal.manager.ComponentContext componentContext) stopAsync(org.apache.ignite.internal.manager.ComponentContext componentContext) List<org.apache.ignite.internal.systemview.api.SystemView<?>>Methods inherited from class org.apache.ignite.internal.event.AbstractEventProducer
fireEvent, listen, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.ignite.internal.lang.Debuggable
dumpStateMethods inherited from interface org.apache.ignite.internal.manager.IgniteComponent
beforeNodeStop, stopAsync
-
Constructor Details
-
GridLicenseManager
public GridLicenseManager(org.gridgain.internal.license.configuration.LicenseConfiguration licenseConfiguration, org.apache.ignite.internal.cluster.management.ClusterManagementGroupManager cmgManager, org.apache.ignite.internal.cluster.management.topology.LogicalTopology logicalTopology, org.apache.ignite.internal.cluster.management.ClusterStopper clusterStopper, ScheduledExecutorService scheduledExecutor, org.apache.ignite.internal.metrics.MetricManager metricManager, Consumer<org.apache.ignite.internal.eventlog.api.Event> notifier, LicenseProviderFactory licenseProviderFactory) Constructor.- Parameters:
licenseConfiguration- License configuration.cmgManager- CMG manager.logicalTopology- Logical topology.clusterStopper- Cluster stopping service.scheduledExecutor- Scheduled executor service.notifier- Notifier.licenseProviderFactory- License provider factory.
-
-
Method Details
-
startAsync
public CompletableFuture<Void> startAsync(org.apache.ignite.internal.manager.ComponentContext componentContext) - Specified by:
startAsyncin interfaceorg.apache.ignite.internal.manager.IgniteComponent
-
stopAsync
public CompletableFuture<Void> stopAsync(org.apache.ignite.internal.manager.ComponentContext componentContext) - Specified by:
stopAsyncin interfaceorg.apache.ignite.internal.manager.IgniteComponent
-
applyNewLicense
Applies a new license.- Parameters:
license- License string.
-
getCurrentLicense
Returns the current license in JSON format. -
systemViews
- Specified by:
systemViewsin interfaceorg.apache.ignite.internal.systemview.api.SystemViewProvider
-
refreshLicense
Method to trigger refresh of a license. We need this handle so we can workaround a problem with late arrival of a license during cluster startup process. -
checkLimits
public void checkLimits()Checks that the current license is valid for limits.- Throws:
org.gridgain.internal.license.LicenseViolationException- if the current license is not valid for the current logical topology.
-