Class BrokerConfigUtils
java.lang.Object
io.confluent.telemetry.BrokerConfigUtils
This class was created to extract the interbroker client configs from the broker at runtime.
Since the reporter is passed all of the broker configs during initialization, we decided that
it makes more sense to just extract them here as opposed to trying to duplicate configs and
special-case our reporter inside the broker code.
This is essentially copied code from the KafkaConfig and Endpoint broker classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionderiveLocalProducerConfigs(Map<String, Object> originals) static StringgetBalanceReplicationFactor(Map<String, Object> config) return the config value for ConfluentConfigs.BALANCER_TOPICS_REPLICATION_FACTOR_CONFIGgetBrokerRack(Map<String, Object> configs) static org.apache.kafka.common.EndpointgetInterBrokerEndpoint(Map<String, Object> config)
-
Constructor Details
-
BrokerConfigUtils
public BrokerConfigUtils()
-
-
Method Details
-
getBalanceReplicationFactor
-
getInterBrokerEndpoint
-
deriveLocalProducerConfigs
-
getBrokerRack
-