类 CatalogController


  • @RestController
    @RequestMapping("/v1/ns/catalog")
    public class CatalogController
    extends java.lang.Object
    Catalog controller.
    作者:
    nkorange
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      com.fasterxml.jackson.databind.node.ObjectNode instanceList​(java.lang.String namespaceId, java.lang.String serviceName, java.lang.String clusterName, int page, int pageSize)
      List instances of special service.
      private CatalogService judgeCatalogService()  
      java.lang.Object listDetail​(boolean withInstances, java.lang.String namespaceId, int pageNo, int pageSize, java.lang.String serviceName, java.lang.String groupName, java.lang.String containedInstance, boolean hasIpCount)
      List service detail information.
      java.lang.Object serviceDetail​(java.lang.String namespaceId, java.lang.String serviceName)
      Get service detail.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • CatalogController

        public CatalogController()
    • 方法详细资料

      • serviceDetail

        @GetMapping("/service")
        public java.lang.Object serviceDetail​(@RequestParam(defaultValue="public")
                                              java.lang.String namespaceId,
                                              java.lang.String serviceName)
                                       throws com.alibaba.nacos.api.exception.NacosException
        Get service detail.
        参数:
        namespaceId - namespace id
        serviceName - service name
        返回:
        service detail information
        抛出:
        com.alibaba.nacos.api.exception.NacosException - nacos exception
      • instanceList

        @RequestMapping("/instances")
        public com.fasterxml.jackson.databind.node.ObjectNode instanceList​(@RequestParam(defaultValue="public")
                                                                           java.lang.String namespaceId,
                                                                           @RequestParam
                                                                           java.lang.String serviceName,
                                                                           @RequestParam
                                                                           java.lang.String clusterName,
                                                                           @RequestParam(name="pageNo")
                                                                           int page,
                                                                           @RequestParam
                                                                           int pageSize)
                                                                    throws com.alibaba.nacos.api.exception.NacosException
        List instances of special service.
        参数:
        namespaceId - namespace id
        serviceName - service name
        clusterName - cluster name
        page - number of page
        pageSize - size of each page
        返回:
        instances information
        抛出:
        com.alibaba.nacos.api.exception.NacosException - nacos exception
      • listDetail

        @GetMapping("/services")
        public java.lang.Object listDetail​(@RequestParam(required=false)
                                           boolean withInstances,
                                           @RequestParam(defaultValue="public")
                                           java.lang.String namespaceId,
                                           @RequestParam(required=false)
                                           int pageNo,
                                           @RequestParam(required=false)
                                           int pageSize,
                                           @RequestParam(name="serviceNameParam",defaultValue="")
                                           java.lang.String serviceName,
                                           @RequestParam(name="groupNameParam",defaultValue="")
                                           java.lang.String groupName,
                                           @RequestParam(name="instance",defaultValue="")
                                           java.lang.String containedInstance,
                                           @RequestParam(required=false)
                                           boolean hasIpCount)
                                    throws com.alibaba.nacos.api.exception.NacosException
        List service detail information.
        参数:
        withInstances - whether return instances
        namespaceId - namespace id
        pageNo - number of page
        pageSize - size of each page
        serviceName - service name
        groupName - group name
        containedInstance - instance name pattern which will be contained in detail
        hasIpCount - whether filter services with empty instance
        返回:
        list service detail
        抛出:
        com.alibaba.nacos.api.exception.NacosException