sunxiaojian opened a new issue, #85:
URL: https://github.com/apache/rocketmq-connect/issues/85
1. API版本 0.1.2
2. 问题一:SourceTask和SinkTask API中建议把 init、validate、start合并起来比较好,
原因是,在用新的api构造插件的时候发现,由于不太清楚init,validate,start的执行顺序,所以就查了一下源码,困惑的是这个调用顺序是怎么样的,但其实写插件的人可能不太关心这个,所以方法多了反而增加了写插件的成本,建议只提供strat接口给用户实现,把validate可以放在配置类加载时实现,init可以留给写插件的人自己抽象;
3.问题二:task、connector、transform都实现了Component
接口,接口中透出了validate方法但实际发现task调用中是没有用到的,如下图:

这样会造成每个实现的sourceTask和sinkTask会有个空方法,造成疑惑,是否可以在SinkTask和SourceTask抽象类中隐去
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]