1 Star 0 Fork 414

lism / porter

forked from sxfad / porter 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
plugin_EN.md 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
MurasakiSeiFu 提交于 2018-08-01 21:50 . 提交管理后台模块

Plugin development

Plugin development

  • Consumer plugin
Extends AbstractDataConsumer class

Published by spring.factories:

cn.vbill.middleware.porter.core.consumer.DataConsumer=xxx

Effective through the configuration file:

porter.task[index].consumer.consumerName=pluginName
  • EventConverter(Consumer Source Message Converter Plugin)
Published by spring.factories:

cn.vbill.middleware.porter.core.event.s.EventConverter = \
  cn.vbill.middleware.porter.plugin.OggXmlConverter

Effective through the configuration file:

porter.task[index].consumer.converter=oggXml
  • EventProcessor(Custom consumption data extraction plugin)
Can be written in the form of jar, class, source code

Effective through the configuration file:

porter.task[index].consumer.eventProcessor.className=cn.vbill.middleware.porter.plugin.CustomEventProcessor
porter.task[index].consumer.eventProcessor.content=file path
  • Loader plugin
Extends AbstractDataLoader class

Published by spring.factories:

cn.vbill.middleware.porter.core.loader.DataLoader=xxx

Effective through the configuration file:

porter.task[index].loader.loaderName=pluginName
  • Alarm plugin
Not open yet

Plugin registration

	Place it in the porter-boot-version/plugins directory and take effect after restarting porter-boot.

Development example

demo

Java
1
https://gitee.com/lism/porter.git
git@gitee.com:lism/porter.git
lism
porter
porter
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891