Interface IKNetConnector
Specific implementation of IConnector to support KNet Connect SDK
public interface IKNetConnector : IConnector, IVersion
- Inherited Members
Properties
ConnectorName
The unique name of the connector
string ConnectorName { get; }
Property Value
Properties
The properties retrieved from StartInternal()
IReadOnlyDictionary<string, string> Properties { get; }
Property Value
TaskClassType
Type TaskClassType { get; }
Property Value
Methods
AllocateTask(long)
Allocates a task object based on KNetTask
object AllocateTask(long taskId)
Parameters
taskId
longThe unique id generated from JAva side
Returns
- object
The local .NET object
Start(IReadOnlyDictionary<string, string>)
Implement the method to execute the start action
void Start(IReadOnlyDictionary<string, string> props)
Parameters
props
IReadOnlyDictionary<string, string>The set of properties returned from Apache Kafka Connect framework: the IReadOnlyDictionary<TKey, TValue> contains the same info from configuration file.
TaskConfigs(int, IDictionary<string, string>)
Invoked during allocation of tasks from Apache Kafka Connect
void TaskConfigs(int index, IDictionary<string, string> config)
Parameters
index
intThe actual index
config
IDictionary<string, string>The IDictionary<TKey, TValue> to be filled in with properties for the task: the same will be received from Start(IReadOnlyDictionary<string, string>)