Table of Contents

Class KNetConnectSink

Namespace
MASES.KNetTemplate.KNetConnect
Assembly
knetConnectSink.dll
public class KNetConnectSink : KNetSinkConnector<KNetConnectSink, KNetConnectSinkTask>, IKNetConnector, IConnector, IVersion, IKNetConnectLogging
Inheritance
KNetConnectSink
Implements
Inherited Members

Methods

Start(IReadOnlyDictionary<string, string>)

Implement the method to execute the start action

public override 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.

Stop()

Implement the method to execute the stop action

public override void Stop()

TaskConfigs(int, IDictionary<string, string>)

Invoked during allocation of tasks from Apache Kafka Connect

public override void TaskConfigs(int index, IDictionary<string, string> config)

Parameters

index int

The 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>)