com.baidu.driver4j.bdrp.node
类 BnsGroupSupportsNodeManager

java.lang.Object
  继承者 org.apache.commons.pool2.impl.BaseObjectPoolConfig
      继承者 org.apache.commons.pool2.impl.GenericObjectPoolConfig
          继承者 com.baidu.driver4j.bdrp.node.NodeManager
              继承者 com.baidu.driver4j.bdrp.node.BnsSupportsNodeManager
                  继承者 com.baidu.driver4j.bdrp.node.BnsGroupSupportsNodeManager
所有已实现的接口:
Cloneable, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class BnsGroupSupportsNodeManager
extends BnsSupportsNodeManager

A BNS Group supports class for NodeManager which provide BNS change callback feature.

作者:
chenxingbo

字段摘要
 
从类 com.baidu.driver4j.bdrp.node.BnsSupportsNodeManager 继承的字段
bnsCallbackProxy, bnsConnectTimeout, bnsReadTimeout, bnsServer, bnsService, bnsUpdateInterval, enableCallback
 
从类 org.apache.commons.pool2.impl.GenericObjectPoolConfig 继承的字段
DEFAULT_MAX_IDLE, DEFAULT_MAX_TOTAL, DEFAULT_MIN_IDLE
 
从类 org.apache.commons.pool2.impl.BaseObjectPoolConfig 继承的字段
DEFAULT_BLOCK_WHEN_EXHAUSTED, DEFAULT_EVICTION_POLICY_CLASS_NAME, DEFAULT_JMX_ENABLE, DEFAULT_JMX_NAME_PREFIX, DEFAULT_LIFO, DEFAULT_MAX_WAIT_MILLIS, DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_NUM_TESTS_PER_EVICTION_RUN, DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_TEST_ON_BORROW, DEFAULT_TEST_ON_RETURN, DEFAULT_TEST_WHILE_IDLE, DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS
 
构造方法摘要
BnsGroupSupportsNodeManager()
           
 
方法摘要
 void destroy()
          销毁当前实例
 GroupIDCInstanceQuery getBnsGroupInstanceQuery()
           
protected  List<com.baidu.driver4j.bns.Instance> getInitedInstances()
           
 void init()
          初始化BNS相关的一些配置
 void setBnsGroupConfUpdateInterval(int bnsGroupConfUpdateInterval)
           
 void setBnsGroupConfUpdater(BnsGroupConfUpdater bnsGroupConfUpdater)
           
 void setIdc(String idc)
           
 
从类 com.baidu.driver4j.bdrp.node.BnsSupportsNodeManager 继承的方法
createBNSCallbackProxy, getBnsService, initBnsQueryProxyTimeOut, setBnsCallbackProxy, setBnsConnectTimeout, setBnsReadTimeout, setBnsServer, setBnsUpdateInterval, setEnableCallback, setNodeBnsCallback, setNodes
 
从类 com.baidu.driver4j.bdrp.node.NodeManager 继承的方法
afterPropertiesSet, getAvailableNodes, getDisabledNodeSet, getNode, getNode, getNodeMap, getNodes, getNodeSelector, getRetryCountOnError, getTimeout, refeshNodes, refreshDisabledNodes, refreshNodes, setHealthCriteria, setNodeSelector, setRetryCountOnError, setTimeout
 
从类 org.apache.commons.pool2.impl.GenericObjectPoolConfig 继承的方法
clone, getMaxIdle, getMaxTotal, getMinIdle, setMaxIdle, setMaxTotal, setMinIdle
 
从类 org.apache.commons.pool2.impl.BaseObjectPoolConfig 继承的方法
getBlockWhenExhausted, getEvictionPolicyClassName, getJmxEnabled, getJmxNamePrefix, getLifo, getMaxWaitMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getSoftMinEvictableIdleTimeMillis, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, setBlockWhenExhausted, setEvictionPolicyClassName, setJmxEnabled, setJmxNamePrefix, setLifo, setMaxWaitMillis, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setSoftMinEvictableIdleTimeMillis, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BnsGroupSupportsNodeManager

public BnsGroupSupportsNodeManager()
方法详细信息

init

public void init()
初始化BNS相关的一些配置

覆盖:
BnsSupportsNodeManager 中的 init

getInitedInstances

protected List<com.baidu.driver4j.bns.Instance> getInitedInstances()
覆盖:
BnsSupportsNodeManager 中的 getInitedInstances

getBnsGroupInstanceQuery

public GroupIDCInstanceQuery getBnsGroupInstanceQuery()

destroy

public void destroy()
             throws Exception
从类 BnsSupportsNodeManager 复制的描述
销毁当前实例

指定者:
接口 org.springframework.beans.factory.DisposableBean 中的 destroy
覆盖:
BnsSupportsNodeManager 中的 destroy
抛出:
Exception

setIdc

public void setIdc(String idc)

setBnsGroupConfUpdater

public void setBnsGroupConfUpdater(BnsGroupConfUpdater bnsGroupConfUpdater)

setBnsGroupConfUpdateInterval

public void setBnsGroupConfUpdateInterval(int bnsGroupConfUpdateInterval)


Copyright © 2016. All rights reserved.