pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Albert Cardona <acardona@ini.phys.ethz.ch>
To: pgsql-jdbc@postgresql.org
Cc: Nicholas E. Wakefield <nwakefield@kineticnetworks.com>
Subject: Re: how to monitor the amount of bytes fetched in a executeQuery()
Date: Wed, 12 Jul 2006 08:56:12 -0700
Message-ID: <200607120856.12722.acardona@ini.phys.ethz.ch> (raw)
In-Reply-To: <2F2A7EB72EBAF24582513E72ACCBCAAE11A2D6@kniexch01.KineticNetworks.com>
References: <2F2A7EB72EBAF24582513E72ACCBCAAE11A2D6@kniexch01.KineticNetworks.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






view thread (7+ messages)  latest in thread

Message-ID: <200607120856.12722.acardona@ini.phys.ethz.ch>
Permalink:  ../200607120856.12722.acardona@ini.phys.ethz.ch/
Also on:    postgresql.org/message-id/200607120856.12722.acardona@ini.phys.ethz.ch

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: acardona@ini.phys.ethz.ch, nwakefield@kineticnetworks.com
  Subject: Re: how to monitor the amount of bytes fetched in a executeQuery()
  In-Reply-To: <200607120856.12722.acardona@ini.phys.ethz.ch>
  References: <2F2A7EB72EBAF24582513E72ACCBCAAE11A2D6@kniexch01.KineticNetworks.com> <200607120856.12722.acardona@ini.phys.ethz.ch>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox