Class KNetTask
The generic class which is the base of both source or sink task
public abstract class KNetTask : IKNetTask, ITask, IKNetConnectLogging
- Inheritance
-
KNetTask
- Implements
- Derived
- Inherited Members
Properties
Connector
The associated IConnector
public IKNetConnector Connector { get; }
Property Value
IsDebugEnabled
Reports if debug level is enabled
public bool IsDebugEnabled { get; }
Property Value
IsErrorEnabled
Reports if error level is enabled
public bool IsErrorEnabled { get; }
Property Value
IsInfoEnabled
Reports if info level is enabled
public bool IsInfoEnabled { get; }
Property Value
IsTraceEnabled
Reports if trace level is enabled
public bool IsTraceEnabled { get; }
Property Value
IsWarnEnabled
Reports if warning level is enabled
public bool IsWarnEnabled { get; }
Property Value
Properties
The properties retrieved from StartInternal()
public IReadOnlyDictionary<string, string> Properties { get; }
Property Value
ReflectedTaskClassName
The unique name used to map objects between JVM and .NET
public 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
T
The expected return Type
Exceptions
DataToExchange(object)
An helper function to read the data from Java side
protected void DataToExchange(object data)
Parameters
data
object
Exceptions
DataToExchange<T>()
An helper function to read the data from Java side
protected T DataToExchange<T>()
Returns
- T
The
T
Type Parameters
T
The expected return Type
Exceptions
ExecuteOnTask(string, params object[])
An helper function to read the data from Java side
protected void ExecuteOnTask(string method, params object[] args)
Parameters
Exceptions
ExecuteOnTask<T>(string, params object[])
An helper function to read the data from Java side
protected T ExecuteOnTask<T>(string method, params object[] args)
Parameters
Returns
- T
The
T
Type Parameters
T
The expected return Type
Exceptions
LogDebug(string)
Write a debug
public void LogDebug(string var1)
Parameters
var1
stringString to write
LogDebug(string, JVMBridgeException)
Write a debug
public void LogDebug(string var1, JVMBridgeException var2)
Parameters
var1
stringString to write
var2
JVMBridgeExceptionAssociated MASES.JCOBridge.C2JBridge.JVMBridgeException
LogError(string)
Write a error
public void LogError(string var1)
Parameters
var1
stringString to write
LogError(string, JVMBridgeException)
Write a error
public void LogError(string var1, JVMBridgeException var2)
Parameters
var1
stringString to write
var2
JVMBridgeExceptionAssociated MASES.JCOBridge.C2JBridge.JVMBridgeException
LogInfo(string)
Write a info
public void LogInfo(string var1)
Parameters
var1
stringString to write
LogInfo(string, JVMBridgeException)
Write a info
public void LogInfo(string var1, JVMBridgeException var2)
Parameters
var1
stringString to write
var2
JVMBridgeExceptionAssociated MASES.JCOBridge.C2JBridge.JVMBridgeException
LogTrace(string)
Write a trace
public void LogTrace(string var1)
Parameters
var1
stringString to write
LogTrace(string, JVMBridgeException)
Write a trace
public void LogTrace(string var1, JVMBridgeException var2)
Parameters
var1
stringString to write
var2
JVMBridgeExceptionAssociated MASES.JCOBridge.C2JBridge.JVMBridgeException
LogWarn(string)
Write a warning
public void LogWarn(string var1)
Parameters
var1
stringString to write
LogWarn(string, JVMBridgeException)
Write a warning
public void LogWarn(string var1, JVMBridgeException var2)
Parameters
var1
stringString to write
var2
JVMBridgeExceptionAssociated MASES.JCOBridge.C2JBridge.JVMBridgeException
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
props
IReadOnlyDictionary<string, string>The set of properties returned from Apache Kafka Connect framework: the IReadOnlyDictionary<TKey, TValue> contains the info from TaskConfigs(int, IDictionary<string, string>).
StartInternal()
Public method used from Java to trigger Start(Map<String, String>)
public void StartInternal()
Stop()
Implement the method to execute the stop action
public abstract void Stop()
StopInternal()
Public method used from Java to trigger Stop()
public void StopInternal()
Version()
Implement the method to execute the version action
public abstract string Version()
Returns
VersionInternal()
Public method used from Java to trigger Version()
public object VersionInternal()