类 Balancer.RandomByWeight

  • 封闭类:
    Balancer

    public static class Balancer.RandomByWeight
    extends java.lang.Object
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static java.util.List<com.alibaba.nacos.api.naming.pojo.Instance> selectAll​(com.alibaba.nacos.api.naming.pojo.ServiceInfo serviceInfo)
      Select all instance.
      static com.alibaba.nacos.api.naming.pojo.Instance selectHost​(com.alibaba.nacos.api.naming.pojo.ServiceInfo dom)
      Random select one instance from service.
      • 从类继承的方法 java.lang.Object

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

      • RandomByWeight

        public RandomByWeight()
    • 方法详细资料

      • selectAll

        public static java.util.List<com.alibaba.nacos.api.naming.pojo.Instance> selectAll​(com.alibaba.nacos.api.naming.pojo.ServiceInfo serviceInfo)
        Select all instance.
        参数:
        serviceInfo - service information
        返回:
        all instance of services
      • selectHost

        public static com.alibaba.nacos.api.naming.pojo.Instance selectHost​(com.alibaba.nacos.api.naming.pojo.ServiceInfo dom)
        Random select one instance from service.
        参数:
        dom - service
        返回:
        random instance