Package org.apache.kafka.connect.tools
Class SchemaSourceConnector
java.lang.Object
org.apache.kafka.connect.connector.Connector
org.apache.kafka.connect.source.SourceConnector
org.apache.kafka.connect.tools.SchemaSourceConnector
- All Implemented Interfaces:
Versioned
A simple source connector that is capable of producing static data with
Struct schemas.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig()Define the configuration for the connector.voidStart this Connector.voidstop()Stop this connector.Returns theTaskimplementation for this Connector.taskConfigs(int maxTasks) Returns a set of configurations for Tasks based on the current configuration, producing at mostmaxTasksconfigurations.version()Get the version of this component.Methods inherited from class org.apache.kafka.connect.source.SourceConnector
alterOffsets, canDefineTransactionBoundaries, exactlyOnceSupportMethods inherited from class org.apache.kafka.connect.connector.Connector
initialize, initialize, reconfigure, validate
-
Constructor Details
-
SchemaSourceConnector
public SchemaSourceConnector()
-
-
Method Details
-
version
Description copied from interface:VersionedGet the version of this component.- Returns:
- the version, formatted as a String. The version may not be
nullor empty.
-
start
Description copied from class:ConnectorStart this Connector. This method will only be called on a clean Connector, i.e. it has either just been instantiated and initialized orConnector.stop()has been invoked. -
taskClass
Description copied from class:ConnectorReturns theTaskimplementation for this Connector. -
taskConfigs
Description copied from class:ConnectorReturns a set of configurations for Tasks based on the current configuration, producing at mostmaxTasksconfigurations.- Specified by:
taskConfigsin classConnector- Parameters:
maxTasks- maximum number of configurations to generate- Returns:
- configurations for Tasks
-
stop
public void stop()Description copied from class:ConnectorStop this connector. -
config
Description copied from class:ConnectorDefine the configuration for the connector.
-