Simple connection failover support

Поиск
Список
Период
Сортировка
От Mikko Tiihonen
Тема Simple connection failover support
Дата
Msg-id 4FBB9691.50008@nitorcreations.com
обсуждение исходный текст
Ответы Simple connection fail-over documentation patch  (Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>)
Re: Simple connection failover support  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
Hi,

Here are two patches that add simple failover support to the jdbc driver.

Patch 1 converts all references to pair of host+port variables to single InetSocketAddress
Patch 2 rewrites the url parsing to support multiple host:port pairs and modifies the low level connection opening to
retryonce all listed addresses 
I also added more cases to the unit tests to verify that I did not break any functionality.

* The connection url and connection parameters stay backwards compatible
* If there are commas in the hostname part of the url the new code will use them to split the addresses and keep them
inthe defined priority order 
* If there is any IOException or login failure during the connection phase the code will try another listed address
* I tried to keep the code still Java 1.4 compatible

-Mikko

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: json type
Следующее
От: OTSUKA Kenji
Дата:
Сообщение: a difference of version information 9.1-902 jar and source