Class ServerListManager


  • public class ServerListManager
    extends Object
    Serverlist Manager
    Author:
    Nacos
    • Constructor Detail

      • ServerListManager

        public ServerListManager()
      • ServerListManager

        public ServerListManager​(List<String> fixed)
      • ServerListManager

        public ServerListManager​(List<String> fixed,
                                 String namespace)
      • ServerListManager

        public ServerListManager​(String host,
                                 int port)
      • ServerListManager

        public ServerListManager​(String endpoint)
                          throws com.alibaba.nacos.api.exception.NacosException
        Throws:
        com.alibaba.nacos.api.exception.NacosException
      • ServerListManager

        public ServerListManager​(String endpoint,
                                 String namespace)
                          throws com.alibaba.nacos.api.exception.NacosException
        Throws:
        com.alibaba.nacos.api.exception.NacosException
      • ServerListManager

        public ServerListManager​(Properties properties)
                          throws com.alibaba.nacos.api.exception.NacosException
        Throws:
        com.alibaba.nacos.api.exception.NacosException
    • Method Detail

      • start

        public void start()
                   throws com.alibaba.nacos.api.exception.NacosException
        Throws:
        com.alibaba.nacos.api.exception.NacosException
      • contain

        public boolean contain​(String ip)
      • refreshCurrentServerAddr

        public void refreshCurrentServerAddr()
      • getCurrentServerAddr

        public String getCurrentServerAddr()
      • getContentPath

        public String getContentPath()
      • getName

        public String getName()
      • getNamespace

        public String getNamespace()
      • getTenant

        public String getTenant()