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 Details

    • DummyLicenseManagerService

      public DummyLicenseManagerService()
  • Method Details

    • enabled

      public boolean enabled()
      Specified by:
      enabled in interface org.apache.kafka.server.license.LicenseManagerService
    • configure

      public void configure(Map<String,?> configs)
      Specified by:
      configure in interface org.apache.kafka.server.license.LicenseManagerService
    • start

      public CompletableFuture<Void> start(String componentId)
      Specified by:
      start in interface org.apache.kafka.server.license.LicenseManagerService
    • isReady

      public boolean isReady()
      Specified by:
      isReady in interface org.apache.kafka.server.license.LicenseManagerService
    • updateLicense

      public org.apache.kafka.server.license.UpdateLicenseResult updateLicense(String licenseJwt, boolean dryRun)
      Specified by:
      updateLicense in interface org.apache.kafka.server.license.LicenseManagerService
    • getLicenses

      public org.apache.kafka.server.license.GetLicensesResult getLicenses()
      Specified by:
      getLicenses in interface org.apache.kafka.server.license.LicenseManagerService
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.apache.kafka.server.license.LicenseManagerService