jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "DataStore" by ThomasMueller
Date Mon, 10 Mar 2008 15:54:52 GMT
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();
  }}}
  

Mime
View raw message