类 FileNodeListener
java.lang.Object
java.util.Observable
com.alibaba.druid.pool.ha.node.NodeListener
com.alibaba.druid.pool.ha.node.FileNodeListener
A NodeList that monitors the change of a file.
- 作者:
- DigitalSonic
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddestroy()Close the ScheduledExecutorService.getFile()intvoidinit()Start a Scheduler to check the specified file.refresh()Load the properties file and diff with the stored Properties.voidvoidsetIntervalSeconds(int intervalSeconds) 从类继承的方法 com.alibaba.druid.pool.ha.node.NodeListener
getLastUpdateTime, getObserver, getPrefix, getProperties, setLastUpdateTime, setObserver, setPrefix, setProperties, update, update从类继承的方法 java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
构造器详细资料
-
FileNodeListener
public FileNodeListener()
-
-
方法详细资料
-
init
public void init()Start a Scheduler to check the specified file.- 覆盖:
init在类中NodeListener- 另请参阅:
-
refresh
Load the properties file and diff with the stored Properties.- 指定者:
refresh在类中NodeListener- 返回:
- A List of the modification
-
destroy
public void destroy()Close the ScheduledExecutorService.- 指定者:
destroy在类中NodeListener
-
getIntervalSeconds
public int getIntervalSeconds() -
setIntervalSeconds
public void setIntervalSeconds(int intervalSeconds) -
getFile
-
setFile
-