X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B22739FB269 for ; Wed, 12 Jul 2006 12:56:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 55222-05 for ; Wed, 12 Jul 2006 12:56:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.ini.unizh.ch (dns.ini.unizh.ch [130.60.230.185]) by postgresql.org (Postfix) with ESMTP id 70E199FB248 for ; Wed, 12 Jul 2006 12:56:30 -0300 (ADT) Received: from smtp.ini.unizh.ch (localhost [127.0.0.1]) by smtp.ini.unizh.ch (Postfix) with ESMTP id C5E7285C935; Wed, 12 Jul 2006 17:56:28 +0200 (CEST) Received: by smtp.ini.unizh.ch (Postfix, from userid 499) id B9CA785C94B; Wed, 12 Jul 2006 17:56:28 +0200 (CEST) Received: from [192.168.0.2] (dhcp226-12.obee.ucla.edu [164.67.12.226]) (using TLSv1 with cipher EXP1024-RC4-SHA (56/128 bits)) (No client certificate requested) by smtp.ini.unizh.ch (Postfix) with ESMTP id 5510E85C935; Wed, 12 Jul 2006 17:56:17 +0200 (CEST) From: Albert Cardona To: pgsql-jdbc@postgresql.org Subject: Re: how to monitor the amount of bytes fetched in a executeQuery() Date: Wed, 12 Jul 2006 08:56:12 -0700 User-Agent: KMail/1.9.1 Cc: "Nicholas E. Wakefield" References: <2F2A7EB72EBAF24582513E72ACCBCAAE11A2D6@kniexch01.KineticNetworks.com> In-Reply-To: <2F2A7EB72EBAF24582513E72ACCBCAAE11A2D6@kniexch01.KineticNetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607120856.12722.acardona@ini.phys.ethz.ch> X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/48 X-Sequence-Number: 15474 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