diff --git a/src/net/KNet/ClientSide/BridgedClasses/Connect/KNetConnector.cs b/src/net/KNet/ClientSide/BridgedClasses/Connect/KNetConnector.cs
index 00a5cbe3d9..1ff0c84670 100644
--- a/src/net/KNet/ClientSide/BridgedClasses/Connect/KNetConnector.cs
+++ b/src/net/KNet/ClientSide/BridgedClasses/Connect/KNetConnector.cs
@@ -19,10 +19,12 @@
using Java.Lang;
using Java.Util;
using MASES.JCOBridge.C2JBridge.JVMInterop;
+using MASES.JNet.Extensions;
using MASES.KNet.Common.Config;
using MASES.KNet.Connect.Connector;
using System;
using System.Collections.Concurrent;
+using System.Collections.Generic;
namespace MASES.KNet.Connect
{
@@ -31,6 +33,10 @@ namespace MASES.KNet.Connect
///
public interface IKNetConnector : IConnector
{
+ ///
+ /// The properties retrieved from
+ ///
+ IReadOnlyDictionary Properties { get; }
///
/// Allocates a task object based on
///
@@ -46,11 +52,16 @@ public interface IKNetConnector : IConnector
///
Type TaskClassType { get; }
///
+ /// Implement the method to execute the start action
+ ///
+ /// The set of properties returned from Apache Kafka Connect framework: the contains the same info from configuration file.
+ void Start(IReadOnlyDictionary props);
+ ///
/// Invoked during allocation of tasks from Apache Kafka Connect
///
/// The actual index
- /// The to be filled in with properties for the task: the same will be received from
- void TaskConfigs(int index, Map config);
+ /// The to be filled in with properties for the task: the same will be received from
+ void TaskConfigs(int index, IDictionary config);
}
///
/// The generic class which is the base of both source or sink connectors
@@ -125,6 +136,9 @@ protected T Context()
return ExecuteOnConnector("getContext");
}
+ ///
+ public IReadOnlyDictionary Properties { get; private set; }
+
///
public object AllocateTask(long taskId)
{
@@ -146,20 +160,21 @@ public object AllocateTask(long taskId)
public void Initialize(ConnectorContext ctx) => throw new NotImplementedException("Invoked in Java before any initialization.");
- public void Initialize(ConnectorContext ctx, List