-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE #367] Refactor connector #433
[ISSUE #367] Refactor connector #433
Conversation
0f93c69
to
9620f8f
Compare
Codecov Report
@@ Coverage Diff @@
## develop #433 +/- ##
============================================
+ Coverage 9.80% 9.84% +0.04%
- Complexity 282 283 +1
============================================
Files 228 228
Lines 10785 10829 +44
Branches 919 923 +4
============================================
+ Hits 1057 1066 +9
- Misses 9633 9666 +33
- Partials 95 97 +2
Continue to review full report at Codecov.
|
@ruanwenjun Please hellp to fix these new coming up conflicts. |
7afa346
to
3606d55
Compare
Done |
@@ -16,7 +16,7 @@ | |||
*/ | |||
|
|||
dependencies { | |||
implementation project(":eventmesh-runtime"), project(":eventmesh-connector-rocketmq") | |||
testImplementation project(":eventmesh-runtime"), project(":eventmesh-connector-rocketmq") | |||
implementation project(":eventmesh-runtime") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The starter moudle is useless after refactor, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if the starter module is only used to package dependencies, we can remove this module, but not sure if other things will need to be done in the future before runtime starting.
include 'eventmesh-sdk-java' | ||
include 'eventmesh-common' | ||
include 'eventmesh-connector-api' | ||
include 'eventmesh-starter' | ||
include 'eventmesh-test' | ||
include 'eventmesh-spi' | ||
include 'eventmesh-connector-plugin' | ||
include 'eventmesh-connector-plugin:eventmesh-connector-rocketmq' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to build all plugins without dependencies in gradle file and run specific plugin use configuration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we will not package the plugin into runtime, the all plugins will be packaged into jars, and copy to plugin directory.
We can configure the plugin directory.
@ruanwenjun Did you test this already? |
Yes, the documentation of SPI will be added latter. |
26e9071
to
d936d6c
Compare
d936d6c
to
979dd51
Compare
@ruanwenjun conflicts needs to be resolved. |
@ruanwenjun hello, |
1.support load plugin from eventMeshPluginDir 2.remove connector plugin from runtime
979dd51
to
b0c09e5
Compare
b0c09e5
to
bf6de22
Compare
bf6de22
to
5fc6c97
Compare
@Jackzeng1224 Which branch do you use? Can you get the log initialize extension instance success, extensionType: interface org.apache.eventmesh.api.producer.MeshMQProducer, extensionName: rocketmq at |
@qqeasonchen Thanks, done. |
@ruanwenjun hello, The branch I am in is https://github.com/ruanwenjun/incubator-eventmesh/tree/dev_wenjun_refactorPlugin. I haven't seen it so far “initialize extension instance success, extensionType: interface org.apache.eventmesh.api.producer.MeshMQProducer, extensionName: rocketmq” |
@ruanwenjun hello,I think this file configuration is not added. |
@Jackzeng1224 Yes, now the SPI module will load plugin from |
@Jackzeng1224 In our design, we don't want to package all plugins in runtime jar. |
|
@Jackzeng1224 How is it going, do you meet other problem? |
No. Very well designed 👍 |
When is the doc update?
Have the docs updated now? |
@qqeasonchen Yes, the docs has been updated. |
- eventmesh-connector-api : eventmesh插件接口定义模块 | ||
- eventmesh-connector-rocketmq : eventmesh rocketmq插件模块 | ||
- eventmesh-connector-api : eventmesh connector插件接口定义模块 | ||
- eventmesh-connector-plugin : eventmesh connector插件模块 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventmesh-connector-api was moved into eventmesh-connector-plugin,the description and picture are not updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will submit a pr to fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will submit a pr to fix.
See #323 , i want to let the student to fix it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
@@ -44,4 +50,9 @@ | |||
<property name="format" value="^(org)\.apache(\.[a-zA-Z][a-zA-Z0-9]*)+$"/> | |||
</module> | |||
</module> | |||
|
|||
<module name="BeforeExecutionExclusionFileFilter"> | |||
<property name="fileNamePattern" value="./eventmesh-runtime/conf/sChat2.jks$"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to remove this module :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
* [ISSUE apache#367] Refactor connector 1.support load plugin from eventMeshPluginDir 2.remove connector plugin from runtime * Add docs of plugin * Remove connector-api in connector-plugin
* [ISSUE apache#367] Refactor connector 1.support load plugin from eventMeshPluginDir 2.remove connector plugin from runtime * Add docs of plugin * Remove connector-api in connector-plugin
1.support load plugin from eventMeshPluginDir
2.remove connector plugin from runtime
In local develop, we can add dependency of
eventmesh-connector-rocketmq
inbuild.gradle
.And remove the plugin when packing.