Skip to content

Commit

Permalink
[INLONG-10761][Agent] Delete reader related code
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwwhuang committed Aug 7, 2024
1 parent af74355 commit 954303b
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@

import org.apache.inlong.agent.conf.JobProfile;
import org.apache.inlong.agent.plugin.Reader;
import org.apache.inlong.agent.plugin.sources.reader.BinlogReader;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

/**
Expand All @@ -37,7 +39,13 @@ public BinlogSource() {

@Override
public List<Reader> split(JobProfile conf) {
return null;
super.init(conf);
BinlogReader binlogReader = new BinlogReader();
binlogReader.setReadSource(conf.getInstanceId());
List<Reader> readerList = new ArrayList<>();
readerList.add(binlogReader);
sourceMetric.sourceSuccessCount.incrementAndGet();
return readerList;
}

}

0 comments on commit 954303b

Please sign in to comment.