Example code to run the data store garbage collection:
GarbageCollector gc = ((SessionImpl)session).createDataStoreGarbageCollector(); gc.scan(); gc.stopScan(); gc.deleteUnused();
Example code to run the data store garbage collection:
JackrabbitRepositoryFactory jf = (JackrabbitRepositoryFactory) factory; RepositoryManager m = jf.getRepositoryManager((JackrabbitRepository) repository); GarbageCollector gc = m.createDataStoreGarbageCollector(); try { gc.mark(); gc.sweep(); } finally { gc.close(); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|