Class KNetTask
The generic class which is the base of both source or sink task
public abstract class KNetTask : KNetCommon, IKNetTask, ITask, IKNetCommon, IKNetConnectLogging
- Inheritance
-
KNetTask
- Implements
- Derived
- Inherited Members
Properties
Connector
The associated IConnector
public IKNetConnector Connector { get; }
Property Value
Properties
The properties retrieved from MASES.KNet.Connect.KNetTask.StartInternal()
public IReadOnlyDictionary<string, string> Properties { get; }
Property Value
ReflectedRemoteObjectClassName
The unique name used to map objects between JVM and .NET
protected override sealed string ReflectedRemoteObjectClassName { get; }
Property Value
ReflectedTaskClassName
The unique name used to map objects between JVM and .NET
protected abstract string ReflectedTaskClassName { get; }
Property Value
TaskId
The id received during initialization
public long TaskId { get; }
Property Value
Methods
Context<T>()
An helper function to read the data from Java side
protected T Context<T>()
Returns
- T
The
T
Type Parameters
TThe expected return Type
Exceptions
Start(Map<String, String>)
Not implemented
public void Start(Map<String, String> props)
Parameters
Exceptions
- NotImplementedException
Local version with a different signature
Start(IReadOnlyDictionary<string, string>)
Implement the method to execute the start action
public abstract void Start(IReadOnlyDictionary<string, string> props)
Parameters
propsIReadOnlyDictionary<string, string>The set of properties returned from Apache Kafka Connect framework: the IReadOnlyDictionary<TKey, TValue> contains the info from KNetConnector.TaskConfigs(int, IDictionary<string, string>).
Stop()
Implement the method to execute the stop action
public abstract void Stop()
Version()
Implement the method to execute the version action
public abstract string Version()