[ 
https://issues.apache.org/jira/browse/JCR-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649358#action_12649358
 ] 

alexander.klimetschek edited comment on JCR-1865 at 11/20/08 4:56 AM:
----------------------------------------------------------------------

+1 for the data store api with Felix' extensions + the separate management API 
package

For the mark()/sweep() vs. gc() I would opt for the mark/sweep variant, since I 
guess the synchronization inside the datastore implementation would be very 
hard to do, since the datastore itself doesn't know all the repositories that 
use the same datastore location. If there will be a future garbage collection 
mechanism that can directly delete items for example, the implementation of 
mark() wouldn't do anything. Most clients will call mark() and sweep() in a row 
and the ones that work in a shared situation would do it as Thomas noted. And 
we don't want people to use the "lower-level APIs".

      was (Author: alexander.klimetschek):
    +1 for the data store api with Felix' extensions.

For the mark()/sweep() vs. gc() I would opt for the mark/sweep variant, since I 
guess the synchronization inside the datastore implementation would be very 
hard to do, since the datastore itself doesn't know all the repositories that 
use the same datastore location. If there will be a future garbage collection 
mechanism that can directly delete items for example, the implementation of 
mark() wouldn't do anything. Most clients will call mark() and sweep() in a row 
and the ones that work in a shared situation would do it as Thomas noted. And 
we don't want people to use the "lower-level APIs".
  
> Add the Data Store to the Jackrabbit API
> ----------------------------------------
>
>                 Key: JCR-1865
>                 URL: https://issues.apache.org/jira/browse/JCR-1865
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Minor
>         Attachments: api.patch, core.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.

Reply via email to