Class AbstractConnectorSpec
java.lang.Object
io.strimzi.api.kafka.model.common.Spec
io.strimzi.api.kafka.model.connector.AbstractConnectorSpec
- All Implemented Interfaces:
UnknownPropertyPreserving
- Direct Known Subclasses:
KafkaConnectorSpec,KafkaMirrorMaker2ConnectorSpec
Abstracts connector config. Connectors for MM2 do not have the
className property
while KafkaConnectors must have it.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringForbidden options in the connector configuration => these are full options and not prefixes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPause()Deprecated.getState()voidsetAlterOffsets(AlterOffsets alterOffsets) Sets the configuration for altering connector offsets.voidsetAutoRestart(AutoRestart autoRestart) Configures auto-restarting of this connectorvoidSets the connector configurationvoidsetListOffsets(ListOffsets listOffsets) Sets the configuration for listing connector offsets.voidDeprecated.voidsetState(ConnectorState state) Sets the connector statevoidsetTasksMax(Integer tasksMax) Sets the maximum number of tasksMethods inherited from class io.strimzi.api.kafka.model.common.Spec
getAdditionalProperties, setAdditionalProperty
-
Field Details
-
FORBIDDEN_PARAMETERS
Forbidden options in the connector configuration => these are full options and not prefixes- See Also:
-
-
Constructor Details
-
AbstractConnectorSpec
public AbstractConnectorSpec()
-
-
Method Details
-
getTasksMax
- Returns:
- Max number of tasks
-
setTasksMax
Sets the maximum number of tasks- Parameters:
tasksMax- Max number of tasks
-
getConfig
- Returns:
- Connector configuration
-
setConfig
Sets the connector configuration- Parameters:
config- Map with the connector configuration
-
getPause
Deprecated.- Returns:
- Flag indicating whether the connector should paused or not
-
setPause
Deprecated.Sets the flag to indicate if the connector should be paused or not- Parameters:
pause- Set to true to request the connector to be paused. False to have it running.
-
getAutoRestart
- Returns:
- Auto-restart configuration of this connector
-
setAutoRestart
Configures auto-restarting of this connector- Parameters:
autoRestart- Auto-restart configuration
-
getState
- Returns:
- The state of the connector
-
setState
Sets the connector state- Parameters:
state- The state of the connector
-
getListOffsets
- Returns:
- The listOffsets configuration.
-
setListOffsets
Sets the configuration for listing connector offsets.- Parameters:
listOffsets- The listOffsets configuration.
-
getAlterOffsets
- Returns:
- The alterOffsets configuration.
-
setAlterOffsets
Sets the configuration for altering connector offsets.- Parameters:
alterOffsets- The alterOffsets configuration.
-