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

public abstract class AbstractConnectorSpec extends Spec
Abstracts connector config. Connectors for MM2 do not have the className property while KafkaConnectors must have it.
  • Field Details

    • FORBIDDEN_PARAMETERS

      public static final String 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

      public Integer getTasksMax()
      Returns:
      Max number of tasks
    • setTasksMax

      public void setTasksMax(Integer tasksMax)
      Sets the maximum number of tasks
      Parameters:
      tasksMax - Max number of tasks
    • getConfig

      public Map<String,Object> getConfig()
      Returns:
      Connector configuration
    • setConfig

      public void setConfig(Map<String,Object> config)
      Sets the connector configuration
      Parameters:
      config - Map with the connector configuration
    • getPause

      @Deprecated public Boolean getPause()
      Deprecated.
      Returns:
      Flag indicating whether the connector should paused or not
    • setPause

      @Deprecated public void setPause(Boolean pause)
      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

      public AutoRestart getAutoRestart()
      Returns:
      Auto-restart configuration of this connector
    • setAutoRestart

      public void setAutoRestart(AutoRestart autoRestart)
      Configures auto-restarting of this connector
      Parameters:
      autoRestart - Auto-restart configuration
    • getState

      public ConnectorState getState()
      Returns:
      The state of the connector
    • setState

      public void setState(ConnectorState state)
      Sets the connector state
      Parameters:
      state - The state of the connector
    • getListOffsets

      public ListOffsets getListOffsets()
      Returns:
      The listOffsets configuration.
    • setListOffsets

      public void setListOffsets(ListOffsets listOffsets)
      Sets the configuration for listing connector offsets.
      Parameters:
      listOffsets - The listOffsets configuration.
    • getAlterOffsets

      public AlterOffsets getAlterOffsets()
      Returns:
      The alterOffsets configuration.
    • setAlterOffsets

      public void setAlterOffsets(AlterOffsets alterOffsets)
      Sets the configuration for altering connector offsets.
      Parameters:
      alterOffsets - The alterOffsets configuration.