接口 NamingMaintainService


  • public interface NamingMaintainService
    Operations related to Nacos.
    从以下版本开始:
    1.0.1
    作者:
    liaochuntao
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      void createService​(Service service, AbstractSelector selector)
      create service to Nacos.
      void createService​(java.lang.String serviceName)
      create service to Nacos.
      void createService​(java.lang.String serviceName, java.lang.String groupName)
      create service to Nacos.
      void createService​(java.lang.String serviceName, java.lang.String groupName, float protectThreshold)
      create service to Nacos.
      void createService​(java.lang.String serviceName, java.lang.String groupName, float protectThreshold, java.lang.String expression)
      create service to Nacos.
      boolean deleteService​(java.lang.String serviceName)
      delete service from Nacos.
      boolean deleteService​(java.lang.String serviceName, java.lang.String groupName)
      delete service from Nacos.
      Service queryService​(java.lang.String serviceName)
      query service.
      Service queryService​(java.lang.String serviceName, java.lang.String groupName)
      query service.
      void shutDown()
      Shutdown the resource service.
      void updateInstance​(java.lang.String serviceName, Instance instance)
      update instance info.
      void updateInstance​(java.lang.String serviceName, java.lang.String groupName, Instance instance)
      update instance info.
      void updateService​(Service service, AbstractSelector selector)
      update service to Nacos with selector.
      void updateService​(java.lang.String serviceName, java.lang.String groupName, float protectThreshold)
      update service to Nacos.
      void updateService​(java.lang.String serviceName, java.lang.String groupName, float protectThreshold, java.util.Map<java.lang.String,​java.lang.String> metadata)
      update service to Nacos.
    • 方法详细资料

      • updateInstance

        void updateInstance​(java.lang.String serviceName,
                            Instance instance)
                     throws NacosException
        update instance info.
        参数:
        serviceName - service name
        instance - instance
        抛出:
        NacosException - nacos exception
      • updateInstance

        void updateInstance​(java.lang.String serviceName,
                            java.lang.String groupName,
                            Instance instance)
                     throws NacosException
        update instance info.
        参数:
        serviceName - service name
        groupName - group name
        instance - instance
        抛出:
        NacosException - nacos exception
      • queryService

        Service queryService​(java.lang.String serviceName)
                      throws NacosException
        query service.
        参数:
        serviceName - service name
        返回:
        service
        抛出:
        NacosException - nacos exception
      • queryService

        Service queryService​(java.lang.String serviceName,
                             java.lang.String groupName)
                      throws NacosException
        query service.
        参数:
        serviceName - service name
        groupName - group name
        返回:
        service
        抛出:
        NacosException - nacos exception
      • createService

        void createService​(java.lang.String serviceName)
                    throws NacosException
        create service to Nacos.
        参数:
        serviceName - name of service
        抛出:
        NacosException - nacos exception
      • createService

        void createService​(java.lang.String serviceName,
                           java.lang.String groupName)
                    throws NacosException
        create service to Nacos.
        参数:
        serviceName - name of service
        groupName - group of service
        抛出:
        NacosException - nacos exception
      • createService

        void createService​(java.lang.String serviceName,
                           java.lang.String groupName,
                           float protectThreshold)
                    throws NacosException
        create service to Nacos.
        参数:
        serviceName - name of service
        groupName - group of service
        protectThreshold - protectThreshold of service
        抛出:
        NacosException - nacos exception
      • createService

        void createService​(java.lang.String serviceName,
                           java.lang.String groupName,
                           float protectThreshold,
                           java.lang.String expression)
                    throws NacosException
        create service to Nacos.
        参数:
        serviceName - name of service
        groupName - group of service
        protectThreshold - protectThreshold of service
        expression - expression of selector
        抛出:
        NacosException - nacos exception
      • deleteService

        boolean deleteService​(java.lang.String serviceName)
                       throws NacosException
        delete service from Nacos.
        参数:
        serviceName - name of service
        返回:
        if delete service success return true
        抛出:
        NacosException - nacos exception
      • deleteService

        boolean deleteService​(java.lang.String serviceName,
                              java.lang.String groupName)
                       throws NacosException
        delete service from Nacos.
        参数:
        serviceName - name of service
        groupName - group of service
        返回:
        if delete service success return true
        抛出:
        NacosException - nacos exception
      • updateService

        void updateService​(java.lang.String serviceName,
                           java.lang.String groupName,
                           float protectThreshold)
                    throws NacosException
        update service to Nacos.
        参数:
        serviceName - name of service
        groupName - group of service
        protectThreshold - protectThreshold of service
        抛出:
        NacosException - nacos exception
      • updateService

        void updateService​(java.lang.String serviceName,
                           java.lang.String groupName,
                           float protectThreshold,
                           java.util.Map<java.lang.String,​java.lang.String> metadata)
                    throws NacosException
        update service to Nacos.
        参数:
        serviceName - name of service
        groupName - group of service
        protectThreshold - protectThreshold of service
        metadata - metadata of service
        抛出:
        NacosException - nacos exception