Package org.nuxeo.lib.stream.tools
Class KafkaConfigParser
- java.lang.Object
-
- org.nuxeo.lib.stream.tools.KafkaConfigParser
-
public class KafkaConfigParser extends Object
Parse an xml file describing Kafka configurations, the format is the one used by KafkaConfigDescriptor. We can not use the Nuxeo descriptor directly because we are in a library without Nuxeo dependency.- Since:
- 9.10
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertiesconsumerPropertiesprotected static StringDEFAULT_BOOTSTRAP_SERVERSprotected Stringprefixprotected PropertiesproducerProperties
-
Constructor Summary
Constructors Constructor Description KafkaConfigParser(Path path, String configName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertiesdecodeProperties(Node node)PropertiesgetConsumerProperties()StringgetPrefix()PropertiesgetProducerProperties()protected voidparseConfig(Node node)
-
-
-
Field Detail
-
DEFAULT_BOOTSTRAP_SERVERS
protected static final String DEFAULT_BOOTSTRAP_SERVERS
- See Also:
- Constant Field Values
-
producerProperties
protected Properties producerProperties
-
consumerProperties
protected Properties consumerProperties
-
prefix
protected String prefix
-
-
Method Detail
-
parseConfig
protected void parseConfig(Node node)
-
decodeProperties
protected Properties decodeProperties(Node node)
-
getProducerProperties
public Properties getProducerProperties()
-
getConsumerProperties
public Properties getConsumerProperties()
-
getPrefix
public String getPrefix()
-
-