Class ConnectorCommonConfig
java.lang.Object
org.apache.kafka.common.config.AbstractConfig
io.aiven.commons.kafka.config.CommonConfig
io.aiven.commons.kafka.connector.common.config.ConnectorCommonConfig
- Direct Known Subclasses:
SourceCommonConfig
public class ConnectorCommonConfig
extends io.aiven.commons.kafka.config.CommonConfig
The definition of the common connector config functions.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.aiven.commons.kafka.config.CommonConfig
io.aiven.commons.kafka.config.CommonConfig.ChangeTrackingMap -
Field Summary
Fields inherited from class org.apache.kafka.common.config.AbstractConfig
AUTOMATIC_CONFIG_PROVIDERS_PROPERTY, CONFIG_PROVIDERS_CONFIG -
Constructor Summary
ConstructorsConstructorDescriptionConnectorCommonConfig(ConnectorCommonConfigDef configDef, Map<String, String> props) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfragmentPostProcess(io.aiven.commons.kafka.config.CommonConfig.ChangeTrackingMap map) final io.aiven.commons.util.io.compression.CompressionTypeGets the compression type expected for I/O to storage.final StringGets the key converter schema registry URL.Gets the schema registry URL.final StringGets the value converter schema registry URL.final booleanReturnstrueif the key converter schema registry is enabled.final booleanReturnstrueif the schema registry is enabled.final booleanReturnstrueif the value converter schema registry is enabled.Methods inherited from class io.aiven.commons.kafka.config.CommonConfig
finalize, getKafkaRetryBackoffMs, getMaxTasks, getTaskId, postProcessParsedConfigMethods inherited from class org.apache.kafka.common.config.AbstractConfig
documentationOf, equals, get, getBoolean, getClass, getConfiguredInstance, getConfiguredInstance, getConfiguredInstances, getConfiguredInstances, getConfiguredInstances, getDouble, getInt, getList, getLong, getPassword, getShort, getString, hashCode, ignore, logUnused, nonInternalValues, originals, originals, originalsStrings, originalsWithPrefix, originalsWithPrefix, typeOf, unused, values, valuesWithPrefixAllOrNothing, valuesWithPrefixOverride
-
Constructor Details
-
ConnectorCommonConfig
Constructor.- Parameters:
configDef- the configuration definition.props- the map of properties
-
-
Method Details
-
fragmentPostProcess
protected void fragmentPostProcess(io.aiven.commons.kafka.config.CommonConfig.ChangeTrackingMap map) - Overrides:
fragmentPostProcessin classio.aiven.commons.kafka.config.CommonConfig
-
getSchemaRegistryUrl
Gets the schema registry URL. May returnnullif not set.- Returns:
- the schema registry URL or
null
-
isSchemaRegistryEnabled
public final boolean isSchemaRegistryEnabled()Returnstrueif the schema registry is enabled. Schema registry will not be listed as enabled if the URL is null.- Returns:
trueif the registry is enabled,falseotherwise.
-
getValueConverterSchemaRegistryUrl
Gets the value converter schema registry URL. May returnnullif not set.- Returns:
- the value converter schema registry URL or
null
-
isValueConverterRegistryEnabled
public final boolean isValueConverterRegistryEnabled()Returnstrueif the value converter schema registry is enabled. Schema registry will not be listed as enabled if the value converter schema registry URL is null.- Returns:
trueif the value converter registry is enabled,falseotherwise.
-
getKeyConverterSchemaRegistryUrl
Gets the key converter schema registry URL. May returnnullif not set.- Returns:
- the key converter schema registry URL or
null
-
isKeyConverterRegistryEnabled
public final boolean isKeyConverterRegistryEnabled()Returnstrueif the key converter schema registry is enabled. Schema registry will not be listed as enabled if the key converter schema registry URL is null.- Returns:
trueif the key converter registry is enabled,falseotherwise.
-
getCompressionType
public final io.aiven.commons.util.io.compression.CompressionType getCompressionType()Gets the compression type expected for I/O to storage.- Returns:
- the compression type expected for I/O to storage.
-