Package io.strimzi.api.kafka.model
Class AbstractConnectorSpec
java.lang.Object
io.strimzi.api.kafka.model.Spec
io.strimzi.api.kafka.model.AbstractConnectorSpec
- All Implemented Interfaces:
UnknownPropertyPreserving,Serializable
- Direct Known Subclasses:
KafkaConnectorSpec,KafkaMirrorMaker2ConnectorSpec
Abstracts connector config. Connectors for MM2 do not have the
className property
while KafkaConnectors must have it.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringForbidden options in the connector configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPause()Deprecated.getState()voidsetAutoRestart(AutoRestart autoRestart) Configures auto-restarting of this connectorvoidSets the connector configurationvoidDeprecated.voidsetState(ConnectorState state) Sets the connector statevoidsetTasksMax(Integer tasksMax) Sets the maximum number of tasksMethods inherited from class io.strimzi.api.kafka.model.Spec
getAdditionalProperties, setAdditionalProperty
-
Field Details
-
FORBIDDEN_PARAMETERS
Forbidden options in the connector configuration- 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
-