Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 37397 invoked from network); 10 Mar 2008 15:55:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 15:55:14 -0000 Received: (qmail 21187 invoked by uid 500); 10 Mar 2008 15:55:11 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 21160 invoked by uid 500); 10 Mar 2008 15:55:10 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 21151 invoked by uid 99); 10 Mar 2008 15:55:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 08:55:10 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 15:54:42 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 2AC0FD2D5 for ; Mon, 10 Mar 2008 15:54:53 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: commits@jackrabbit.apache.org Date: Mon, 10 Mar 2008 15:54:52 -0000 Message-ID: <20080310155453.19364.56371@eos.apache.org> Subject: [Jackrabbit Wiki] Update of "DataStore" by ThomasMueller X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification. The following page has been changed by ThomasMueller: http://wiki.apache.org/jackrabbit/DataStore ------------------------------------------------------------------------------ {{{ import org.apache.jackrabbit.core.data.GarbageCollector; ... - GarbageCollector gc = new GarbageCollector(null, 0); - gc.scan(session); + GarbageCollector gc; + SessionImpl si = (SessionImpl)session; + gc = si.createDataStoreGarbageCollector(); + + // optional (if you want to implement a progress bar / output): + gc.setScanEventListener(this); + gc.scan(); gc.stopScan(); + + // could be a separate button, if multiple repositories use the same data store: gc.deleteUnused(); }}}