Class LicenseProviderFactory
java.lang.Object
org.gridgain.internal.license.provider.LicenseProviderFactory
Factory class responsible for managing and providing license providers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAvailableLicenseProvider(@Nullable com.typesafe.config.Config clusterConfig) Determines and returns the first available license provider from the given configuration.boolean
-
Constructor Details
-
LicenseProviderFactory
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, aLicenseViolationExceptionis 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()
-