@RestController @RequestMapping(value="/v1/cs/communication") public class CommunicationController extends Object
| 构造器和说明 |
|---|
CommunicationController(DumpService dumpService,
LongPollingService longPollingService) |
| 限定符和类型 | 方法和说明 |
|---|---|
SampleResult |
getSubClientConfig(String dataId,
String group,
String tenant,
org.springframework.ui.ModelMap modelMap)
Get client config information of subscriber in local machine.
|
SampleResult |
getSubClientConfigByIp(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String ip,
org.springframework.ui.ModelMap modelMap)
Get client config listener lists of subscriber in local machine.
|
Boolean |
notifyConfigInfo(javax.servlet.http.HttpServletRequest request,
String dataId,
String group,
String tenant,
String tag)
Notify the change of config information.
|
@Autowired public CommunicationController(DumpService dumpService, LongPollingService longPollingService)
@GetMapping(value="/dataChange") public Boolean notifyConfigInfo(javax.servlet.http.HttpServletRequest request, @RequestParam(value="dataId") String dataId, @RequestParam(value="group") String group, @RequestParam(value="tenant",required=false,defaultValue="") String tenant, @RequestParam(value="tag",required=false) String tag)
@GetMapping(value="/configWatchers") public SampleResult getSubClientConfig(@RequestParam(value="dataId") String dataId, @RequestParam(value="group") String group, @RequestParam(value="tenant",required=false) String tenant, org.springframework.ui.ModelMap modelMap)
@GetMapping(value="/watcherConfigs") public SampleResult getSubClientConfigByIp(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @RequestParam(value="ip") String ip, org.springframework.ui.ModelMap modelMap)
Copyright © 2018–2022 Alibaba Group. All rights reserved.