类 CommunicationController
- java.lang.Object
-
- com.alibaba.nacos.config.server.controller.CommunicationController
-
@RestController @RequestMapping("/v1/cs/communication") public class CommunicationController extends java.lang.ObjectController for other node notification.- 作者:
- boyan
-
-
字段概要
字段 修饰符和类型 字段 说明 private ConfigChangeListenContextconfigChangeListenContextprivate com.alibaba.nacos.core.remote.ConnectionManagerconnectionManagerprivate DumpServicedumpServiceprivate LongPollingServicelongPollingService
-
构造器概要
构造器 构造器 说明 CommunicationController(DumpService dumpService, LongPollingService longPollingService, ConfigChangeListenContext configChangeListenContext, com.alibaba.nacos.core.remote.ConnectionManager connectionManager)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 SampleResultgetSubClientConfig(java.lang.String dataId, java.lang.String group, java.lang.String tenant, org.springframework.ui.ModelMap modelMap)Get client config information of subscriber in local machine.SampleResultgetSubClientConfigByIp(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String ip, org.springframework.ui.ModelMap modelMap)Get client config listener lists of subscriber in local machine.java.lang.BooleannotifyConfigInfo(javax.servlet.http.HttpServletRequest request, java.lang.String dataId, java.lang.String group, java.lang.String tenant, java.lang.String tag)Notify the change of config information.
-
-
-
字段详细资料
-
dumpService
private final DumpService dumpService
-
longPollingService
private final LongPollingService longPollingService
-
configChangeListenContext
private final ConfigChangeListenContext configChangeListenContext
-
connectionManager
private final com.alibaba.nacos.core.remote.ConnectionManager connectionManager
-
-
构造器详细资料
-
CommunicationController
public CommunicationController(DumpService dumpService, LongPollingService longPollingService, ConfigChangeListenContext configChangeListenContext, 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.
-
-