Class CommunicationController


  • @RestController
    @RequestMapping("/v1/cs/communication")
    public class CommunicationController
    extends Object
    用于其他节点通知的控制器
    Author:
    boyan
    • Constructor Detail

    • Method Detail

      • notifyConfigInfo

        @GetMapping("/dataChange")
        public Boolean notifyConfigInfo​(javax.servlet.http.HttpServletRequest request,
                                        @RequestParam("dataId")
                                        String dataId,
                                        @RequestParam("group")
                                        String group,
                                        @RequestParam(value="tenant",required=false,defaultValue="")
                                        String tenant,
                                        @RequestParam(value="tag",required=false)
                                        String tag)
        通知配置信息改变
      • getSubClientConfig

        @GetMapping("/configWatchers")
        public SampleResult getSubClientConfig​(@RequestParam("dataId")
                                               String dataId,
                                               @RequestParam("group")
                                               String group,
                                               @RequestParam(value="tenant",required=false)
                                               String tenant,
                                               org.springframework.ui.ModelMap modelMap)
        在本台机器上获得订阅改配置的客户端信息
      • getSubClientConfigByIp

        @GetMapping("/watcherConfigs")
        public SampleResult getSubClientConfigByIp​(javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.HttpServletResponse response,
                                                   @RequestParam("ip")
                                                   String ip,
                                                   org.springframework.ui.ModelMap modelMap)
        在本台机器上获得客户端监听的配置列表