Class LicenseProviderFactory

java.lang.Object
org.gridgain.internal.license.provider.LicenseProviderFactory

public class LicenseProviderFactory extends Object
Factory class responsible for managing and providing license providers.
  • Constructor Details

    • LicenseProviderFactory

      public LicenseProviderFactory(Path configPath)
      Constructor.
      Parameters:
      configPath - Path to the configuration directory.
  • Method Details

    • getAvailableLicenseProvider

      public LicenseProvider getAvailableLicenseProvider(@Nullable @Nullable com.typesafe.config.Config clusterConfig)
      Determines and returns the first available license provider from the given configuration. The method checks the availability of a license provider in the following order: 1. Configuration-based license provider. 2. AWS license provider. 3. GCP license provider. If none of the providers are available, a LicenseViolationException is thrown.
      Parameters:
      clusterConfig - Configuration object containing the license data for the ConfigLicenseProvider.
      Returns:
      The first available LicenseProvider. If no provider is available, an exception is thrown.
      Throws:
      org.gridgain.internal.license.LicenseViolationException - if no license provider is available.
    • isCloudLicenseAvailable

      public boolean isCloudLicenseAvailable()