public interface LicenseValidator
extends org.apache.kafka.common.Configurable, java.io.Closeable
Modifier and Type | Method and Description |
---|---|
void |
initializeAndVerify(java.lang.String license,
java.lang.String metricGroup,
java.lang.String componentId)
Initialize license using the provided license or free-tier/trial license.
|
boolean |
verifyLicense()
Verifies the registered license
|
void initializeAndVerify(java.lang.String license, java.lang.String metricGroup, java.lang.String componentId) throws InvalidLicenseException
license
- License string which may be emptymetricGroup
- Metrics group for license statuscomponentId
- Component id included in client-ids of Kafka clients used by license managerInvalidLicenseException
- if license is invalid or has expiredboolean verifyLicense()