Re: how to monitor the amount of bytes fetched in a executeQuery() - Mailing list pgsql-jdbc

From Albert Cardona
Subject Re: how to monitor the amount of bytes fetched in a executeQuery()
Date
Msg-id 200607120856.12722.acardona@ini.phys.ethz.ch
Whole thread Raw
In response to Re: how to monitor the amount of bytes fetched in a executeQuery()  ("Nicholas E. Wakefield" <nwakefield@KineticNetworks.com>)
Responses Re: how to monitor the amount of bytes fetched in a executeQuery()  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
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 by date:

Previous
From: "Lucas Sousa"
Date:
Subject: Re: executeQuery Locked
Next
From: "Chris White \(cjwhite\)"
Date:
Subject: Unsubscribe pgsql-jdbc