Class ConnectorCommonConfigFragment
java.lang.Object
io.aiven.commons.kafka.config.fragment.ConfigFragment
io.aiven.commons.kafka.connector.common.config.ConnectorCommonConfigFragment
- All Implemented Interfaces:
io.aiven.commons.kafka.config.fragment.FragmentDataAccess
public class ConnectorCommonConfigFragment
extends io.aiven.commons.kafka.config.fragment.ConfigFragment
The common connector fragment.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGets the setter for this fragment. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringname of java property that if set allows http to be used in URLsFields inherited from class io.aiven.commons.kafka.config.fragment.ConfigFragment
dataAccess -
Constructor Summary
ConstructorsConstructorDescriptionConnectorCommonConfigFragment(io.aiven.commons.kafka.config.fragment.FragmentDataAccess dataAccess) Construct the ConfigFragment. -
Method Summary
Modifier and TypeMethodDescriptionio.aiven.commons.util.io.compression.CompressionTypeGets the compression type expected for I/O to storage.Gets the key converter schema registry URL.Gets the schema registry URL.Gets the value converter schema registry URL.booleanGets the key converter schema registry enabled flag.booleanGets the schema registry enabled flag.booleanGets the value converter schema registry enabled flag.static voidpostProcess(io.aiven.commons.kafka.config.CommonConfig.ChangeTrackingMap configMap) Ensure that the various URLs and enablements are set correctly.Creates a Setter for this fragment.static org.apache.kafka.common.config.ConfigDefupdate(org.apache.kafka.common.config.ConfigDef configDef) Update the configuration definition with the properties for this fragment.voidMethods inherited from class io.aiven.commons.kafka.config.fragment.ConfigFragment
getBoolean, getConfiguredInstance, getInt, getList, getLong, getPassword, getString, has, logDeprecated, logDeprecated, logDeprecated, registerIssue, validate, validationMessage, values
-
Field Details
-
RELAX_SCHEMES
name of java property that if set allows http to be used in URLs- See Also:
-
-
Constructor Details
-
ConnectorCommonConfigFragment
public ConnectorCommonConfigFragment(io.aiven.commons.kafka.config.fragment.FragmentDataAccess dataAccess) Construct the ConfigFragment.- Parameters:
dataAccess- the FragmentDataAccess that this fragment is associated with.
-
-
Method Details
-
setter
Creates a Setter for this fragment.- Parameters:
data- the data map to modify.- Returns:
- the Setter
-
update
public static org.apache.kafka.common.config.ConfigDef update(org.apache.kafka.common.config.ConfigDef configDef) Update the configuration definition with the properties for this fragment.- Parameters:
configDef- the configuration definition to update.- Returns:
- the updated configuration definition.
-
postProcess
public static void postProcess(io.aiven.commons.kafka.config.CommonConfig.ChangeTrackingMap configMap) Ensure that the various URLs and enablements are set correctly.- Parameters:
configMap- the change tracking map to process.
-
validate
- Overrides:
validatein classio.aiven.commons.kafka.config.fragment.ConfigFragment
-
getCompressionType
public 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.
-
getSchemaRegistryUrl
Gets the schema registry URL.- Returns:
- the schema registry URL. May be
null
-
isSchemaRegistryEnabled
public boolean isSchemaRegistryEnabled()Gets the schema registry enabled flag. Iftruethe system should utilize the schema registry.- Returns:
- the schema registry enabled flag.
-
getValueConverterSchemaRegistryUrl
Gets the value converter schema registry URL. May benullif not set andgetSchemaRegistryUrl()returns null.- Returns:
- the value converter schema registry URL.
-
isValueConverterRegistryEnabled
public boolean isValueConverterRegistryEnabled()Gets the value converter schema registry enabled flag. Iftruethe system should utilize the value converter schema registry.- Returns:
- the value converter schema registry enabled flag.
-
getKeyConverterSchemaRegistryUrl
Gets the key converter schema registry URL. May benullif not set andgetSchemaRegistryUrl()returns null.- Returns:
- the key converter schema registry URL.
-
isKeyConverterRegistryEnabled
public boolean isKeyConverterRegistryEnabled()Gets the key converter schema registry enabled flag. Iftruethe system should utilize the key converter schema registry.- Returns:
- the key converter schema registry enabled flag.
-