Class DummyLicenseValidator

java.lang.Object
io.confluent.license.validator.DummyLicenseValidator
All Implemented Interfaces:
Closeable, AutoCloseable, Supplier<org.apache.kafka.server.license.LicenseTrackingInfoHolder>, org.apache.kafka.common.Configurable, org.apache.kafka.server.license.LicenseValidator

public class DummyLicenseValidator extends Object implements org.apache.kafka.server.license.LicenseValidator
A dummy implementation of LicenseValidator for use with integration tests. This can be used by adding a META-INF/services/org.apache.kafka.server.license.LicenseValidator file that points to this class. See clients/clients-integration-tests for an example.
  • Constructor Details

    • DummyLicenseValidator

      public DummyLicenseValidator()
  • Method Details

    • enabled

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

      public void start(String componentId)
      Specified by:
      start in interface org.apache.kafka.server.license.LicenseValidator
    • isLicenseValid

      public boolean isLicenseValid()
      Specified by:
      isLicenseValid in interface org.apache.kafka.server.license.LicenseValidator
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • get

      public org.apache.kafka.server.license.LicenseTrackingInfoHolder get()
      Specified by:
      get in interface Supplier<org.apache.kafka.server.license.LicenseTrackingInfoHolder>
    • configure

      public void configure(Map<String,?> configs)
      Specified by:
      configure in interface org.apache.kafka.common.Configurable