Re: how to monitor the amount of bytes fetched in a executeQuery()

Поиск
Список
Период
Сортировка
Искать
От
Albert Cardona
Тема
Re: how to monitor the amount of bytes fetched in a executeQuery()
Дата
Msg-id
200607120856.12722.acardona@ini.phys.ethz.ch
Ответ на
Список
Дерево обсуждения
how to monitor the amount of bytes fetched in a executeQuery() ? Albert Cardona <acardona@ini.phys.ethz.ch>
Re: how to monitor the amount of bytes fetched in a executeQuery() Oliver Jowett <oliver@opencloud.com>
Re: how to monitor the amount of bytes fetched in a executeQuery() "Nicholas E. Wakefield" <nwakefield@KineticNetworks.com>
Re: how to monitor the amount of bytes fetched in a executeQuery() Albert Cardona <acardona@ini.phys.ethz.ch>
Re: how to monitor the amount of bytes fetched in a executeQuery() Oliver Jowett <oliver@opencloud.com>
Re: how to monitor the amount of bytes fetched in a executeQuery() Albert Cardona <acardona@ini.phys.ethz.ch>
Re: how to monitor the amount of bytes fetched in a executeQuery() Oliver Jowett <oliver@opencloud.com>

Hum, it would be infinitely more convenient, for deployment purposes, not to 
touch the driver at all. What I can do maybe is to hack the driver with 
reflection, since private fields can be accessed as well (except in applets).

Since you've done it before, would you mind sharing the caveats you went 
through, general warnings and also the particular class where the receiving 
InputStream for the ResultSet is? That would save a lot of time!

Also, the ability to monitor the amount of bytes loaded would be an nice 
addition to the driver itself. Perhaps a small Monitor class that extends 
Thread, which monitors the receiving InputStream and provides a single 
getLoadedBytes() method?

Thanks for your insight Nicholas.

Albert



В списке pgsql-jdbc по дате отправления
От: Lucas Sousa
Дата:
Сообщение: Re: executeQuery Locked
От: Chris White \(cjwhite\)
Дата:
Сообщение: Unsubscribe pgsql-jdbc
FAQ