类 com.baidu.driver4j.bns.Instance
的使用

使用 Instance 的软件包
com.baidu.driver4j.bns Core package for BNS access operation 
 

com.baidu.driver4j.bns 中 Instance 的使用
 

返回 Instance 的 com.baidu.driver4j.bns 中的方法
 Instance BNSQueryProxy.getInstance(String serviceName, String hostName)
          服务(组)实例信息查询
 

返回变量类型为 Instance 的类型的 com.baidu.driver4j.bns 中的方法
 List<Instance> BNSQueryProxy.getInstances(String serviceName)
          服务(组)实例信息查询
 List<Instance> BNSQueryProxy.getInstances(String serviceName, boolean enabledOnly)
          服务(组)实例信息查询
 List<Instance> BNSQueryProxy.getInstances(String serviceName, int... status)
          服务(组)实例信息查询,
 List<Instance> BNSQueryProxy.getInstancesByServiceGroup(String name)
          根据名称查询服务组下的实例信息
 List<Instance> InstanceQuery.queryInstances(String serviceName)
          服务(组)实例信息查询
 List<Instance> BNSQueryProxy.queryInstances(String serviceName)
           
 

参数类型为 Instance 的 com.baidu.driver4j.bns 中的方法
 void BNSProxy.addInstance(String serviceName, Instance instance)
          add instance under target service name
 void Instance.copyFrom(Instance instance, boolean ignoreNull)
           
 int SelectionStrategy.deciding(Instance instance)
          Returns 0~100 value for each Instance. if return less than 0, then return 0
if return great than 100 then return 100.
 void BNSProxy.updateInstance(String serviceName, Instance instance)
          修改实例的各种信息
 void BNSProxy.updateInstance(String serviceName, Instance instance, boolean ignoreNull)
          修改实例的各种信息
 

类型变量类型为 Instance 的 com.baidu.driver4j.bns 中的方法参数
 void BNSProxy.addInstances(String serviceName, List<Instance> intances)
          批量增加实例
 void BNSCallback.callback(String serviceName, List<Instance> instances)
          callback method on changed instances from target service name
 



Copyright © 2016. All rights reserved.