Class DummyLicenseManagerService
java.lang.Object
io.confluent.license.service.DummyLicenseManagerService
- All Implemented Interfaces:
AutoCloseable, org.apache.kafka.server.license.LicenseManagerService
public class DummyLicenseManagerService
extends Object
implements org.apache.kafka.server.license.LicenseManagerService
A dummy implementation of
LicenseManagerService for use with integration tests.
Loaded via ServiceLoader when registered in META-INF/services. All operations are no-ops
and the service is always "ready".-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidbooleanenabled()org.apache.kafka.server.license.GetLicensesResultbooleanisReady()org.apache.kafka.server.license.UpdateLicenseResultupdateLicense(String licenseJwt, boolean dryRun) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.server.license.LicenseManagerService
updateLicense
-
Constructor Details
-
DummyLicenseManagerService
public DummyLicenseManagerService()
-
-
Method Details
-
enabled
public boolean enabled()- Specified by:
enabledin interfaceorg.apache.kafka.server.license.LicenseManagerService
-
configure
-
start
- Specified by:
startin interfaceorg.apache.kafka.server.license.LicenseManagerService
-
isReady
public boolean isReady()- Specified by:
isReadyin interfaceorg.apache.kafka.server.license.LicenseManagerService
-
updateLicense
public org.apache.kafka.server.license.UpdateLicenseResult updateLicense(String licenseJwt, boolean dryRun) - Specified by:
updateLicensein interfaceorg.apache.kafka.server.license.LicenseManagerService
-
getLicenses
public org.apache.kafka.server.license.GetLicensesResult getLicenses()- Specified by:
getLicensesin interfaceorg.apache.kafka.server.license.LicenseManagerService
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.apache.kafka.server.license.LicenseManagerService
-