Skip to content

Commit

Permalink
update connector runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
xwm1992 committed Apr 24, 2024
1 parent 43e00b6 commit 69f4c1e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class ConnectorRuntime implements Runtime {
private final ExecutorService startService =
ThreadPoolFactory.createSingleExecutor("eventMesh-sourceWorker-startService");

private final ScheduledExecutorService heartBeatExecutor = Executors.newSingleThreadScheduledExecutor();;
private final ScheduledExecutorService heartBeatExecutor = Executors.newSingleThreadScheduledExecutor();

private final BlockingQueue<ConnectRecord> queue;

Expand All @@ -84,6 +84,8 @@ public ConnectorRuntime(RuntimeInstanceConfig runtimeInstanceConfig) {
public void init() throws Exception {
connectorRuntimeConfig = ConfigService.getInstance().buildConfigInstance(ConnectorRuntimeConfig.class);

//TODO: 根据connectorRuntimeConfig中的jobId,从adminServer获取connectorRuntimeConfig信息,然后初始化connector

ConnectorCreateService<?> sourceConnectorCreateService = ConnectorPluginFactory.createConnector(
connectorRuntimeConfig.getSourceConnectorType());
sourceConnector = (Source)sourceConnectorCreateService.create();
Expand Down Expand Up @@ -133,7 +135,6 @@ public void onCompleted() {

requestObserver = adminStub.invokeBiStream(responseObserver);

//TODO: 根据connectorRuntimeConfig中的

heartBeatExecutor.scheduleAtFixedRate(() -> {

Expand Down

0 comments on commit 69f4c1e

Please sign in to comment.