2021-11-05 02:29:30 +00:00
|
|
|
|
# 配置项
|
2022-03-22 15:52:01 +00:00
|
|
|
|
## 示例格式
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"cmi":"",
|
|
|
|
|
"debug":"",
|
|
|
|
|
"disableDoRepo":false,
|
|
|
|
|
"disableLocalLhs":false,
|
|
|
|
|
"doipCertPath":"",
|
|
|
|
|
"doipLhsAddress":"",
|
|
|
|
|
"doipPort":-1,
|
|
|
|
|
"doipUserHandle":"",
|
|
|
|
|
"enableEventPersistence":false,
|
|
|
|
|
"enableSsl":"./ssl/chained.pem:./ssl/domain.pem",
|
|
|
|
|
"ip":"127.0.0.1",
|
|
|
|
|
"isLAN":true,
|
|
|
|
|
"overwrite":false,
|
|
|
|
|
"servicePort":21030,
|
|
|
|
|
"textFileSuffixes":".yjs,.json,.txt,.css,.js,.html,.md,.conf,.csv",
|
|
|
|
|
"withBdledgerClient":"./runnable/bdledger_mac",
|
|
|
|
|
"withBdledgerServer":false,
|
|
|
|
|
"consistencyPlugins": "./libs/custom-plugin.jar"
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
## consistencyPlugins 配置
|
|
|
|
|
下述四项插件使用字符串分割,如需添加多项,以逗号分隔,在cmconfig.json里修改如:
|
|
|
|
|
``````
|
|
|
|
|
"consistencyPlugins": "xxx/xxx.jar,xxx/xxx.jar"
|
|
|
|
|
``````
|
|
|
|
|
## 通讯插件配置
|
|
|
|
|
下述四项插件使用字符串分割,如需添加多项,在cmconfig.json里修改如:
|
2021-11-05 06:42:20 +00:00
|
|
|
|
``````
|
|
|
|
|
"wsPluginActions": "org.bdware.metering.MeteringAction"
|
|
|
|
|
``````
|
2022-03-22 15:52:01 +00:00
|
|
|
|
1. wsPluginActions: WS端,包括contractManagerFrameHandler和CMHttpHandler
|
|
|
|
|
2. clientToAgentPlugins: client -> cluster 包括MasterClientFrameHandler
|
|
|
|
|
3. clientToClusterPlugins:[], client -> NodeCenterClientHandler
|
|
|
|
|
4. tcpPlugins:tcp 包括TcpserverFrameHandler
|