refactoring
This commit is contained in:
		
							parent
							
								
									b82525ae86
								
							
						
					
					
						commit
						23063b1600
					
				@ -743,7 +743,7 @@ queue:
 | 
				
			|||||||
      sasl.mechanism: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM:PLAIN}"
 | 
					      sasl.mechanism: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM:PLAIN}"
 | 
				
			||||||
      sasl.config: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_JAAS_CONFIG:org.apache.kafka.common.security.plain.PlainLoginModule required username=\"CLUSTER_API_KEY\" password=\"CLUSTER_API_SECRET\";}"
 | 
					      sasl.config: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_JAAS_CONFIG:org.apache.kafka.common.security.plain.PlainLoginModule required username=\"CLUSTER_API_KEY\" password=\"CLUSTER_API_SECRET\";}"
 | 
				
			||||||
      security.protocol: "${TB_QUEUE_KAFKA_CONFLUENT_SECURITY_PROTOCOL:SASL_SSL}"
 | 
					      security.protocol: "${TB_QUEUE_KAFKA_CONFLUENT_SECURITY_PROTOCOL:SASL_SSL}"
 | 
				
			||||||
    consumerPropertiesPerTopic:
 | 
					    consumer-properties-per-topic:
 | 
				
			||||||
      tb_firmware:
 | 
					      tb_firmware:
 | 
				
			||||||
        - key: max.poll.records
 | 
					        - key: max.poll.records
 | 
				
			||||||
          value: 10
 | 
					          value: 10
 | 
				
			||||||
 | 
				
			|||||||
@ -98,7 +98,7 @@ public class TbKafkaSettings {
 | 
				
			|||||||
    private List<TbKafkaProperty> other;
 | 
					    private List<TbKafkaProperty> other;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @Setter
 | 
					    @Setter
 | 
				
			||||||
    private Map<String, List<TbKafkaProperty>> consumerPropertiesPerTopic;
 | 
					    private Map<String, List<TbKafkaProperty>> consumerPropertiesPerTopic = Collections.emptyMap();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public Properties toAdminProps() {
 | 
					    public Properties toAdminProps() {
 | 
				
			||||||
        Properties props = toProps();
 | 
					        Properties props = toProps();
 | 
				
			||||||
 | 
				
			|||||||
@ -136,10 +136,6 @@ queue:
 | 
				
			|||||||
      sasl.mechanism: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM:PLAIN}"
 | 
					      sasl.mechanism: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM:PLAIN}"
 | 
				
			||||||
      sasl.config: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_JAAS_CONFIG:org.apache.kafka.common.security.plain.PlainLoginModule required username=\"CLUSTER_API_KEY\" password=\"CLUSTER_API_SECRET\";}"
 | 
					      sasl.config: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_JAAS_CONFIG:org.apache.kafka.common.security.plain.PlainLoginModule required username=\"CLUSTER_API_KEY\" password=\"CLUSTER_API_SECRET\";}"
 | 
				
			||||||
      security.protocol: "${TB_QUEUE_KAFKA_CONFLUENT_SECURITY_PROTOCOL:SASL_SSL}"
 | 
					      security.protocol: "${TB_QUEUE_KAFKA_CONFLUENT_SECURITY_PROTOCOL:SASL_SSL}"
 | 
				
			||||||
    consumerPropertiesPerTopic:
 | 
					 | 
				
			||||||
      tb_firmware:
 | 
					 | 
				
			||||||
        - key: max.poll.records
 | 
					 | 
				
			||||||
          value: 10
 | 
					 | 
				
			||||||
    other:
 | 
					    other:
 | 
				
			||||||
    topic-properties:
 | 
					    topic-properties:
 | 
				
			||||||
      rule-engine: "${TB_QUEUE_KAFKA_RE_TOPIC_PROPERTIES:retention.ms:604800000;segment.bytes:26214400;retention.bytes:1048576000;partitions:1;min.insync.replicas:1}"
 | 
					      rule-engine: "${TB_QUEUE_KAFKA_RE_TOPIC_PROPERTIES:retention.ms:604800000;segment.bytes:26214400;retention.bytes:1048576000;partitions:1;min.insync.replicas:1}"
 | 
				
			||||||
 | 
				
			|||||||
@ -108,10 +108,6 @@ queue:
 | 
				
			|||||||
      sasl.mechanism: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM:PLAIN}"
 | 
					      sasl.mechanism: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM:PLAIN}"
 | 
				
			||||||
      sasl.config: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_JAAS_CONFIG:org.apache.kafka.common.security.plain.PlainLoginModule required username=\"CLUSTER_API_KEY\" password=\"CLUSTER_API_SECRET\";}"
 | 
					      sasl.config: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_JAAS_CONFIG:org.apache.kafka.common.security.plain.PlainLoginModule required username=\"CLUSTER_API_KEY\" password=\"CLUSTER_API_SECRET\";}"
 | 
				
			||||||
      security.protocol: "${TB_QUEUE_KAFKA_CONFLUENT_SECURITY_PROTOCOL:SASL_SSL}"
 | 
					      security.protocol: "${TB_QUEUE_KAFKA_CONFLUENT_SECURITY_PROTOCOL:SASL_SSL}"
 | 
				
			||||||
    consumerPropertiesPerTopic:
 | 
					 | 
				
			||||||
      tb_firmware:
 | 
					 | 
				
			||||||
        - key: max.poll.records
 | 
					 | 
				
			||||||
          value: 10
 | 
					 | 
				
			||||||
    other:
 | 
					    other:
 | 
				
			||||||
    topic-properties:
 | 
					    topic-properties:
 | 
				
			||||||
      rule-engine: "${TB_QUEUE_KAFKA_RE_TOPIC_PROPERTIES:retention.ms:604800000;segment.bytes:26214400;retention.bytes:1048576000;partitions:1;min.insync.replicas:1}"
 | 
					      rule-engine: "${TB_QUEUE_KAFKA_RE_TOPIC_PROPERTIES:retention.ms:604800000;segment.bytes:26214400;retention.bytes:1048576000;partitions:1;min.insync.replicas:1}"
 | 
				
			||||||
 | 
				
			|||||||
@ -174,10 +174,6 @@ queue:
 | 
				
			|||||||
      sasl.mechanism: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM:PLAIN}"
 | 
					      sasl.mechanism: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM:PLAIN}"
 | 
				
			||||||
      sasl.config: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_JAAS_CONFIG:org.apache.kafka.common.security.plain.PlainLoginModule required username=\"CLUSTER_API_KEY\" password=\"CLUSTER_API_SECRET\";}"
 | 
					      sasl.config: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_JAAS_CONFIG:org.apache.kafka.common.security.plain.PlainLoginModule required username=\"CLUSTER_API_KEY\" password=\"CLUSTER_API_SECRET\";}"
 | 
				
			||||||
      security.protocol: "${TB_QUEUE_KAFKA_CONFLUENT_SECURITY_PROTOCOL:SASL_SSL}"
 | 
					      security.protocol: "${TB_QUEUE_KAFKA_CONFLUENT_SECURITY_PROTOCOL:SASL_SSL}"
 | 
				
			||||||
    consumerPropertiesPerTopic:
 | 
					 | 
				
			||||||
      tb_firmware:
 | 
					 | 
				
			||||||
        - key: max.poll.records
 | 
					 | 
				
			||||||
          value: 10
 | 
					 | 
				
			||||||
    other:
 | 
					    other:
 | 
				
			||||||
    topic-properties:
 | 
					    topic-properties:
 | 
				
			||||||
      rule-engine: "${TB_QUEUE_KAFKA_RE_TOPIC_PROPERTIES:retention.ms:604800000;segment.bytes:26214400;retention.bytes:1048576000;partitions:1}"
 | 
					      rule-engine: "${TB_QUEUE_KAFKA_RE_TOPIC_PROPERTIES:retention.ms:604800000;segment.bytes:26214400;retention.bytes:1048576000;partitions:1}"
 | 
				
			||||||
 | 
				
			|||||||
@ -136,10 +136,6 @@ queue:
 | 
				
			|||||||
      sasl.mechanism: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM:PLAIN}"
 | 
					      sasl.mechanism: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM:PLAIN}"
 | 
				
			||||||
      sasl.config: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_JAAS_CONFIG:org.apache.kafka.common.security.plain.PlainLoginModule required username=\"CLUSTER_API_KEY\" password=\"CLUSTER_API_SECRET\";}"
 | 
					      sasl.config: "${TB_QUEUE_KAFKA_CONFLUENT_SASL_JAAS_CONFIG:org.apache.kafka.common.security.plain.PlainLoginModule required username=\"CLUSTER_API_KEY\" password=\"CLUSTER_API_SECRET\";}"
 | 
				
			||||||
      security.protocol: "${TB_QUEUE_KAFKA_CONFLUENT_SECURITY_PROTOCOL:SASL_SSL}"
 | 
					      security.protocol: "${TB_QUEUE_KAFKA_CONFLUENT_SECURITY_PROTOCOL:SASL_SSL}"
 | 
				
			||||||
    consumerPropertiesPerTopic:
 | 
					 | 
				
			||||||
      tb_firmware:
 | 
					 | 
				
			||||||
        - key: max.poll.records
 | 
					 | 
				
			||||||
          value: 10
 | 
					 | 
				
			||||||
    other:
 | 
					    other:
 | 
				
			||||||
    topic-properties:
 | 
					    topic-properties:
 | 
				
			||||||
      rule-engine: "${TB_QUEUE_KAFKA_RE_TOPIC_PROPERTIES:retention.ms:604800000;segment.bytes:26214400;retention.bytes:1048576000;partitions:1;min.insync.replicas:1}"
 | 
					      rule-engine: "${TB_QUEUE_KAFKA_RE_TOPIC_PROPERTIES:retention.ms:604800000;segment.bytes:26214400;retention.bytes:1048576000;partitions:1;min.insync.replicas:1}"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user