jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1865) Add the Data Store to the Jackrabbit API
Date Tue, 25 Aug 2009 13:57:59 GMT

     [ https://issues.apache.org/jira/browse/JCR-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Thomas Mueller updated JCR-1865:

    Attachment: core_2.patch

New version. 

Backward compatibility: existing applications that cast Session to SessionImpl should still
The existing method in the GarbageCollector didn't change, except 
setSleepBetweenNodes, which is probably not used by most applications.
The new interface MarkEventListener is a subclass of ScanEventListener, so this is not a problem,
but adding a method to MarkEventListener would be a problem.

gc(): while it's possible to create a new method "gc() { mark(); sweep(); }",
I think using two distinct methods shouldn't be a problem. 
Having separate method allows sharing the data store _storage_ among multiple repositories
(where the repositories can be on separate machines). With only gc() there is now way to
run garbage collection. With mark() and sweep(), it's easy: rep1.mark(), rep2.mark(), 
wait until both methods return, rep1.sweep(), rep1.close(), rep2.close().

> Add the Data Store to the Jackrabbit API
> ----------------------------------------
>                 Key: JCR-1865
>                 URL: https://issues.apache.org/jira/browse/JCR-1865
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Minor
>         Attachments: api.patch, api_2.patch, core.patch, core_2.patch
> Currently, the garbage collection is not part of the Jackrabbit API. However, the data
store garbage collection must be used once in a while if the data store is enabled. I propose
to add the required interfaces to the Jackrabbit API. This will also allow to call garbage
collection using RMI.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message