You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2009/08/25 15:57:59 UTC
[jira] Updated: (JCR-1865) Add the Data Store to the Jackrabbit API
[ 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
api_2.patch
New version.
Backward compatibility: existing applications that cast Session to SessionImpl should still work.
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.
Re: [jira] Updated: (JCR-1865) Add the Data Store to the Jackrabbit
API
Posted by Thomas Müller <th...@day.com>.
Hi,
Any veto? Otherwise I will commit the patch in the next days.
https://issues.apache.org/jira/browse/JCR-1865
Regards,
Thomas
On Tue, Aug 25, 2009 at 3:57 PM, Thomas Mueller (JIRA)<ji...@apache.org> wrote:
>
> [ 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
> api_2.patch
>
> New version.
>
> Backward compatibility: existing applications that cast Session to SessionImpl should still work.
> 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.
>
>