Class CommonConfigFragment
java.lang.Object
io.aiven.kafka.connect.common.config.ConfigFragment
io.aiven.kafka.connect.common.config.CommonConfigFragment
The common configuration fragment.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Setter to programmatically set values in the configuraiotn. -
Field Summary
Fields inherited from class io.aiven.kafka.connect.common.config.ConfigFragment
cfg
-
Constructor Summary
ConstructorsConstructorDescriptionCommonConfigFragment
(org.apache.kafka.common.config.AbstractConfig cfg) Create a fragment instance from an AbstractConfig. -
Method Summary
Modifier and TypeMethodDescriptionGet the maximum number of tasks.Get the task Id.static CommonConfigFragment.Setter
Gets a setter for this fragment.static org.apache.kafka.common.config.ConfigDef
update
(org.apache.kafka.common.config.ConfigDef configDef) Update the ConfigDef with the values from the fragment.Methods inherited from class io.aiven.kafka.connect.common.config.ConfigFragment
has, logDeprecated, logDeprecated, logDeprecated, validate
-
Constructor Details
-
CommonConfigFragment
public CommonConfigFragment(org.apache.kafka.common.config.AbstractConfig cfg) Create a fragment instance from an AbstractConfig.- Parameters:
cfg
- the AbstractConfig to retrieve data from.
-
-
Method Details
-
setter
Gets a setter for this fragment.- Parameters:
data
- the data to modify.- Returns:
- The setter.
-
update
public static org.apache.kafka.common.config.ConfigDef update(org.apache.kafka.common.config.ConfigDef configDef) Update the ConfigDef with the values from the fragment.- Parameters:
configDef
- the configuraiton def to update.- Returns:
- the updated configuration def.
-
getTaskId
Get the task Id.- Returns:
- the task Id.
-
getMaxTasks
Get the maximum number of tasks.- Returns:
- the maximum number of tasks.
-