commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <j...@apache.org>
Subject [jira] [Created] (POOL-278) Allow user provided efficient statistics implementations
Date Sat, 27 Sep 2014 20:23:33 GMT
Bernd Eckenfels created POOL-278:
------------------------------------

             Summary: Allow user provided efficient statistics implementations
                 Key: POOL-278
                 URL: https://issues.apache.org/jira/browse/POOL-278
             Project: Commons Pool
          Issue Type: Improvement
    Affects Versions: 2.3
            Reporter: Bernd Eckenfels
            Priority: Minor


As discussed in POOL-277 there is some possibility to clean up the current StatsStore in impl/BaseGenericObjectPool.
This would not only allow to get rid of the synchronized implementation and strange mean calculation,
but also allow a user to register a faster or more complete statistics caluculation.

For this I would suggest to make a Statisctics interface public and allow the user to register
implementations of this interface for the various tracked metrics.

This new interface should cover count, max, and mean. But the user can also directly use the
object to ask it for percentile or other information.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message