ClustersProperties.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package com.provectus.kafka.ui.config;
  2. import java.util.ArrayList;
  3. import java.util.List;
  4. import java.util.Properties;
  5. import lombok.Data;
  6. import org.springframework.boot.context.properties.ConfigurationProperties;
  7. import org.springframework.context.annotation.Configuration;
  8. @Configuration
  9. @ConfigurationProperties("kafka")
  10. @Data
  11. public class ClustersProperties {
  12. List<Cluster> clusters = new ArrayList<>();
  13. @Data
  14. public static class Cluster {
  15. String name;
  16. String bootstrapServers;
  17. String zookeeper;
  18. String schemaRegistry;
  19. SchemaRegistryAuth schemaRegistryAuth;
  20. String ksqldbServer;
  21. String schemaNameTemplate = "%s-value";
  22. String keySchemaNameTemplate = "%s-key";
  23. String protobufFile;
  24. String protobufMessageName;
  25. List<ConnectCluster> kafkaConnect;
  26. int jmxPort;
  27. Properties properties;
  28. boolean readOnly = false;
  29. boolean disableLogDirsCollection = false;
  30. }
  31. @Data
  32. public static class ConnectCluster {
  33. String name;
  34. String address;
  35. }
  36. @Data
  37. public static class SchemaRegistryAuth {
  38. String username;
  39. String password;
  40. }
  41. }