类 CommunicationController


  • @RestController
    @RequestMapping("/v1/cs/communication")
    public class CommunicationController
    extends java.lang.Object
    Controller for other node notification.
    作者:
    boyan
    • 字段详细资料

      • connectionManager

        private final com.alibaba.nacos.core.remote.ConnectionManager connectionManager
    • 方法详细资料

      • notifyConfigInfo

        @GetMapping("/dataChange")
        public java.lang.Boolean notifyConfigInfo​(javax.servlet.http.HttpServletRequest request,
                                                  @RequestParam("dataId")
                                                  java.lang.String dataId,
                                                  @RequestParam("group")
                                                  java.lang.String group,
                                                  @RequestParam(value="tenant",required=false,defaultValue="")
                                                  java.lang.String tenant,
                                                  @RequestParam(value="tag",required=false)
                                                  java.lang.String tag)
        Notify the change of config information.
      • getSubClientConfig

        @GetMapping("/configWatchers")
        public SampleResult getSubClientConfig​(@RequestParam("dataId")
                                               java.lang.String dataId,
                                               @RequestParam("group")
                                               java.lang.String group,
                                               @RequestParam(value="tenant",required=false)
                                               java.lang.String tenant,
                                               org.springframework.ui.ModelMap modelMap)
        Get client config information of subscriber in local machine.
      • getSubClientConfigByIp

        @GetMapping("/watcherConfigs")
        public SampleResult getSubClientConfigByIp​(javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.HttpServletResponse response,
                                                   @RequestParam("ip")
                                                   java.lang.String ip,
                                                   org.springframework.ui.ModelMap modelMap)
        Get client config listener lists of subscriber in local machine.