Class AddOnLicenseManagerImpl
java.lang.Object
io.confluent.license.AddOnLicenseManagerImpl
- All Implemented Interfaces:
AddOnLicenseManager
-
Constructor Summary
ConstructorsConstructorDescriptionAddOnLicenseManagerImpl(ConfluentLicenseStore store, LicenseManagerPurpose purpose, String licenseString, org.apache.kafka.common.utils.Time time) AddOnLicenseManagerImpl(String topic, Map<String, Object> producerConfig, Map<String, Object> consumerConfig, Map<String, Object> topicConfig, LicenseManagerPurpose purpose, String licenseString) Create a new license manager that uses the specified topic for licenses, configurations for an admin client, producer, and consumer to create, write to, and read from that topic in a primary Kafka cluster. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddListener(Consumer<LicenseChanged> listener) registerOrValidateAddOnLicense(String license) voidstart()voidstop()
-
Constructor Details
-
AddOnLicenseManagerImpl
public AddOnLicenseManagerImpl(String topic, Map<String, Object> producerConfig, Map<String, Object> consumerConfig, Map<String, Object> topicConfig, LicenseManagerPurpose purpose, String licenseString) Create a new license manager that uses the specified topic for licenses, configurations for an admin client, producer, and consumer to create, write to, and read from that topic in a primary Kafka cluster.- Parameters:
topic- the name of the topic where licenses are persisted; may not be nullproducerConfig- the configuration for the producer used to write to the license topic; may not be nullconsumerConfig- the configuration for the consumer used to read from the license topic; may not be nulltopicConfig- the configuration for the admin client to create the license topic if required; may not be nullpurpose- the purpose of licenselicenseString- the license string, can be null if you want license to be fetched from kafka
-
AddOnLicenseManagerImpl
public AddOnLicenseManagerImpl(ConfluentLicenseStore store, LicenseManagerPurpose purpose, String licenseString, org.apache.kafka.common.utils.Time time)
-
-
Method Details
-
registerOrValidateAddOnLicense
- Specified by:
registerOrValidateAddOnLicensein interfaceAddOnLicenseManager- Throws:
InvalidLicenseException
-
start
public void start()- Specified by:
startin interfaceAddOnLicenseManager
-
stop
public void stop()- Specified by:
stopin interfaceAddOnLicenseManager
-
addListener
- Specified by:
addListenerin interfaceAddOnLicenseManager
-