jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Session.importXml - how to monitor progress
Date Wed, 29 Aug 2007 18:05:24 GMT

On 8/29/07, Amir Mistric <amistric@nemours.org> wrote:
> I was wondering if anyone has an idea on how to measure the progress of
> the file being imported via Session.importXML() method? I have some very
> large XML files and I would like to at least have a log message outputting
> progress (e.g. "imported 100 nodes........200......300....)
> Is there a way to do this?

The easiest and most generic way would probably be to decorate the
ContentHandler instance returned by getImportContentHandler() with a
decorator that for example counts the number of startElement() or
endElement() calls.


Jukka Zitting

View raw message