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
Subject: Re: about monitoring the input stream
Date: Wed, 13 Sep 2006 18:09:54 +0200
Message-ID: <200609131809.55435.acardona@ini.phys.ethz.ch> (raw)


Marc,

> Why don't you decorate the InputStream with some simple
> CountingInputStream of yours, just like Oliver suggested?

> Something very similar to:
> private java.io.DataOutputStream#incCount()

> If you are lazy you could even extend BufferInputStream; like this
> you have just two read methods to override.


The idea is not to modify the driver one bit in benefit of uncontroversial 
deployment of my application (TrakEM2 at 
http://www.ini.unizh.ch/~acardona/trackem2.html ). If java was lisp I would 
simply alter the register to replace the InputStream, but it isn't and/or I 
don't know how to use reflection to that extent (I don't know what would 
happen was I to replace the InputStream using reflection once a connection 
has been created).

Therefore I ask for suggestions on how to monitor the downloading rate ...
If there aren't any, well, tough luck! I'll have to live with it.

Albert






view thread (10+ messages)  latest in thread

Message-ID: <200609131809.55435.acardona@ini.phys.ethz.ch>
Permalink:  ../200609131809.55435.acardona@ini.phys.ethz.ch/
Also on:    postgresql.org/message-id/200609131809.55435.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
  Subject: Re: about monitoring the input stream
  In-Reply-To: <200609131809.55435.acardona@ini.phys.ethz.ch>
  References: <200609131809.55435.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