类 NacosClusterController

java.lang.Object
com.alibaba.nacos.core.controller.NacosClusterController

@RestController @RequestMapping("/v1/core/cluster") public class NacosClusterController extends Object
Cluster communication interface.
作者:
liaochuntao
  • 构造器详细资料

  • 方法详细资料

    • self

      @GetMapping("/self") public com.alibaba.nacos.common.model.RestResult<Member> self()
    • listNodes

      @GetMapping("/nodes") public com.alibaba.nacos.common.model.RestResult<Collection<Member>> listNodes(@RequestParam(value="keyword",required=false) String ipKeyWord)
      The console displays the list of cluster members.
      参数:
      ipKeyWord - search keyWord
      返回:
      all members
    • listSimpleNodes

      @GetMapping("/simple/nodes") public com.alibaba.nacos.common.model.RestResult<Collection<String>> listSimpleNodes()
    • getHealth

      @GetMapping("/health") public com.alibaba.nacos.common.model.RestResult<String> getHealth()
    • report

      @PostMapping("/report") public com.alibaba.nacos.common.model.RestResult<String> report(@RequestBody Member node)
      Other nodes return their own metadata information.
      参数:
      node - Member
      返回:
      RestResult
    • switchLookup

      @PostMapping("/switch/lookup") public com.alibaba.nacos.common.model.RestResult<String> switchLookup(@RequestParam(name="type") String type)
      Addressing mode switch.
      参数:
      type - member-lookup name
      返回:
      RestResult
    • leave

      @PostMapping("/server/leave") public com.alibaba.nacos.common.model.RestResult<String> leave(@RequestBody Collection<String> params) throws Exception
      member leave.
      参数:
      params - member ip list, example [ip1:port1,ip2:port2,...]
      返回:
      RestResult
      抛出:
      Exception - Exception