Class CommunicationController
- java.lang.Object
-
- com.alibaba.nacos.config.server.controller.CommunicationController
-
@RestController @RequestMapping("/v1/cs/communication") public class CommunicationController extends Object用于其他节点通知的控制器- Author:
- boyan
-
-
Constructor Summary
Constructors Constructor Description CommunicationController(DumpService dumpService, LongPollingService longPollingService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SampleResultgetSubClientConfig(String dataId, String group, String tenant, org.springframework.ui.ModelMap modelMap)在本台机器上获得订阅改配置的客户端信息SampleResultgetSubClientConfigByIp(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String ip, org.springframework.ui.ModelMap modelMap)在本台机器上获得客户端监听的配置列表BooleannotifyConfigInfo(javax.servlet.http.HttpServletRequest request, String dataId, String group, String tenant, String tag)通知配置信息改变
-
-
-
Constructor Detail
-
CommunicationController
@Autowired public CommunicationController(DumpService dumpService, LongPollingService longPollingService)
-
-
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)在本台机器上获得客户端监听的配置列表
-
-