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

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    Applies a new license.
    void
    Checks 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, removeListener

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.ignite.internal.lang.Debuggable

    dumpState

    Methods 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:
      startAsync in interface org.apache.ignite.internal.manager.IgniteComponent
    • stopAsync

      public CompletableFuture<Void> stopAsync(org.apache.ignite.internal.manager.ComponentContext componentContext)
      Specified by:
      stopAsync in interface org.apache.ignite.internal.manager.IgniteComponent
    • applyNewLicense

      public CompletableFuture<Void> applyNewLicense(String license)
      Applies a new license.
      Parameters:
      license - License string.
    • getCurrentLicense

      public String getCurrentLicense()
      Returns the current license in JSON format.
    • systemViews

      public List<org.apache.ignite.internal.systemview.api.SystemView<?>> systemViews()
      Specified by:
      systemViews in interface org.apache.ignite.internal.systemview.api.SystemViewProvider
    • refreshLicense

      public CompletableFuture<Void> 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.