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
ReflectedRemoteObjectClassName
The unique name used to map objects between JVM and .NET
protected override sealed string ReflectedRemoteObjectClassName { get; }
Property Value
Remarks
This value is used when KNet Connect SDK is hosted in the CLR. When KNet Connect SDK starts from the JVM it is ignored.
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(IKNetConnectConfiguration)
Implement the method to execute the start action
public abstract void Start(IKNetConnectConfiguration props)
Parameters
propsIKNetConnectConfigurationThe IKNetConnectConfiguration to access the properties returned from Apache Kafka Connect framework: the Properties contains the info from TaskConfigs(int, int, IKNetTaskConfiguration).
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()