You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Daniel Hobi <Da...@crealogix.com> on 2013/03/26 11:17:23 UTC

Garbage collection progress in %

Hi there

I would like to implement a progress bar for Jackrabbits garbage collection.
Counting the nodes which have already been scanned can be easily done by using the garbage collectors setMarkEvenetListener method.

But: Is there a (easy and resource-efficient) way to get the total amount of nodes in Jackrabbit 2.2.x?

All I have seen so far are solutions where the underlying PersistenceManager is called (with the help of the reflection api) to getAllNodeIds.

Thanks
Daniel

p.s. I noticed that there was a property "jcr.repository.stats.nodes.count" in Jackrabbit 1.x. once which held approximately the amount of nodes.
Unfortunately, this property does no longer exist in Jackrabbit 2.x