[
https://issues.apache.org/jira/browse/JCR-3357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Parvulescu updated JCR-3357:
---------------------------------
Attachment: JCR-3357.patch
attached proposed patch.
I'm not 100% sure about the RepositoryStatisticsImpl#createDelegatingRecorder.
It checks for potential race condition, if somebody else created a recorder
with the same name by calling #getOrCreateRecorder and updates to the good
delegating recorder,
but it leaves the original caller with a potential stale counter reference.
I prefer stale counter that can be refreshed by calling #get again instead of a
read-only 0 value counter.
feedback is welcome.
> Allow TimeSeries to track external counters
> -------------------------------------------
>
> Key: JCR-3357
> URL: https://issues.apache.org/jira/browse/JCR-3357
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-core
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
> Attachments: JCR-3357.patch
>
>
> We should extend the current TimeSeries to be able to track external
> counters.
> This would facilitate the exposure of potentially already existing
> information by simply wrapping it into counters that will then be tracked by
> a normal TimeSeries and exposed as a repository statistic.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira