Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E4F0F4C0 for ; Tue, 26 Mar 2013 10:21:48 +0000 (UTC) Received: (qmail 34316 invoked by uid 500); 26 Mar 2013 10:21:48 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 34176 invoked by uid 500); 26 Mar 2013 10:21:47 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Delivered-To: moderator for users@jackrabbit.apache.org Received: (qmail 23639 invoked by uid 99); 26 Mar 2013 10:17:51 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) From: Daniel Hobi To: "users@jackrabbit.apache.org" Date: Tue, 26 Mar 2013 11:17:23 +0100 Subject: Garbage collection progress in % Thread-Topic: Garbage collection progress in % Thread-Index: Ac4qB/SYtuc3PumuSQWnoDI24JVLzQ== Message-ID: Accept-Language: de-DE, de-CH Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, de-CH Content-Type: multipart/alternative; boundary="_000_E637A6A9D871D74A9A02D55C36CC605C3999083EFDALS077crealog_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_E637A6A9D871D74A9A02D55C36CC605C3999083EFDALS077crealog_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 us= ing the garbage collectors setMarkEvenetListener method. But: Is there a (easy and resource-efficient) way to get the total amount o= f nodes in Jackrabbit 2.2.x? All I have seen so far are solutions where the underlying PersistenceManage= r 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 --_000_E637A6A9D871D74A9A02D55C36CC605C3999083EFDALS077crealog_--