Motan Plugin
#
Description- The motan plugin is a plugin that converts the Http protocol into the motan protocol.
#
Plugin SettingAdd related dependencies and enable plugin, please refer to: Quick start with Motan .
Motan
client access, please refer to: Motan Proxy .
#
Plugin DetailAfter the client accesses the Apache ShenYu
gateway, it will automatically register the selector and rule information.
You can see it in PluginList -> rpc proxy -> motan. For details about the selector and rule configuration, see Selector And Rule Config .
#
MetadataEach motan
interface method, will correspond to a metadata, when the motan
application client access to the Apache ShenYu
gateway, will be automatically registered, can be viewed in the shenyu-admin
background management system of the BasicConfig --> Metadata management.
AppName: specifies the name of the application to which the metadata belongs.
MethodName: the name of the method to call.
Path: http request path.
PathDescribe: the description of the path is easy to view.
ParamsType: the parameters are separated by commas (,) in the order of interface parameter types.
RpcExpand: description of each interface in a
motan
service. For example, here is the interface information for themotan
service:
{ "methodInfo": [ { "methodName": "hello", "params": [ { "left": "java.lang.String", "right": "name" } ] } ], "group": "motan-shenyu-rpc"}
Interface: The fully qualified class name of the
motan
interface.RpcType:choose
motan
.