类 PoolUpdater

java.lang.Object
com.alibaba.druid.pool.ha.node.PoolUpdater
所有已实现的接口:
Observer

public class PoolUpdater extends Object implements Observer
Update the DataSource Connection Pool when notified.
作者:
DigitalSonic
  • 字段详细资料

    • DEFAULT_INTERVAL

      public static final int DEFAULT_INTERVAL
      另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • isInited

      public boolean isInited()
    • init

      public void init()
      Create a ScheduledExecutorService to remove unused DataSources.
    • destroy

      public void destroy()
    • update

      public void update(Observable o, Object arg)
      Process the given NodeEvent[]. Maybe add / delete some nodes.
      指定者:
      update 在接口中 Observer
    • removeDataSources

      public void removeDataSources()
      Remove unused DataSources.
    • addNode

      protected void addNode(NodeEvent event)
    • deleteNode

      protected void deleteNode(NodeEvent event)
    • getHighAvailableDataSource

      public HighAvailableDataSource getHighAvailableDataSource()
    • setHighAvailableDataSource

      public void setHighAvailableDataSource(HighAvailableDataSource highAvailableDataSource)
    • getNodesToDel

      public Set<String> getNodesToDel()
    • getIntervalSeconds

      public int getIntervalSeconds()
    • setIntervalSeconds

      public void setIntervalSeconds(int intervalSeconds)
    • isAllowEmptyPool

      public boolean isAllowEmptyPool()
    • setAllowEmptyPool

      public void setAllowEmptyPool(boolean allowEmptyPool)