Commit Graph
19 Commits
Author SHA1 Message Date
DigitalSonic 99270819ee Keep at least one DataSource in the pool when update by events. 2020-05-05 22:21:00 +08:00
DigitalSonic 2466ac220f some small refactors
1. refactor RandomDataSourceSelector related classes
2. fix some testcases
2020-02-07 15:17:50 +08:00
DigitalSonic eb90260afe rename some fields, add one complex test for FileNodeListener 2020-02-05 20:38:47 +08:00
DigitalSonic 8c57759eaa PoolUpdater can set Schedule Period now 2020-01-28 20:14:16 +08:00
DigitalSonic cff870e80e Refactor Pool creation logic
1. Refactor the create logic to use NodeListener instead of DataSourceCreator.createMap
2. Add destroy methods to NodeListener and PoolUpdater
3. Add a lock to prevent Node update concurrently
2020-01-22 18:46:20 +08:00
DigitalSonic dd2b469414 add a isInBlackList() method 2020-01-22 14:37:32 +08:00
DigitalSonic 75a094c41e add a blacklist in HighAvailableDataSource
Filter the DataSourceMap with the blacklist before returning
2020-01-21 14:58:19 +08:00
DigitalSonic 07bcb98c99 fix import error 2019-04-09 00:59:48 +08:00
DigitalSonic 810128aed9 Merge remote-tracking branch 'upstream/master' 2019-04-09 00:36:35 +08:00
Nico 751247faca Remove unused import and fix error setter 2019-02-22 11:59:59 +08:00
DigitalSonic f681871e49 RandomDataSourceSelector can load some parameters from Properties now 2019-02-02 18:30:56 +08:00
DigitalSonic bd87a038be refactor the codes related to DataSourceSelector 2019-02-02 17:23:13 +08:00
DigitalSonic dfcc16107a fix failed testcase 2019-02-02 16:46:32 +08:00
DigitalSonic b6c90db170 Enhance RandomDataSourceSelector
1. shorten the checking interval when validate failed
2. provide some parameters in higher level
3. add a sleep before validation (default 0)
4. validate the DataSource concurrently
2019-02-01 18:21:16 +08:00
DigitalSonic 65fafdb67a add a special prefix into ha-datasource properties file
In order to put HA Datasource properties and other properties altogether into one properties file, HighAvailableDataSource add a new field named propertyPrefix.
2018-12-13 00:15:47 +08:00
DigitalSonic 8630cf9b5f Optimize getConnection() method
The initialization process is optimized.
If init() is not invoked before getConnection(), it will call init()
first.
When selector obtain a null DataSource, getConnection() will return
null instead of throwing a NullPointerException.
2018-08-17 00:16:10 +08:00
DigitalSonic f355d62981 split the getter/setter for selector
Some old versions of Spring Framework would check the getter/setter of
a bean property. While they were not the same type, exception would be
thrown.
So selector’s getter&setter are all String now.
2018-08-05 23:42:59 +08:00
wenshao 98ef6a8579 add license info. 2018-05-27 18:21:27 +08:00
DigitalSonic ed3861395c Add a HA DataSource implementation 2018-05-05 23:23:46 +08:00