[
https://issues.apache.org/jira/browse/DBCP-586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17609015#comment-17609015
]
Thomas Freller commented on DBCP-586:
-------------------------------------
Yes this would be great
But do you relay want to grant access to the ConnecitonPool or would it be
better to implement
{code:java}
public String getStatsString(){
return this.getConnecitonPool().getStatsString();
// or
// return this.getConnectionPool().toString();
}{code}
I address this because I want to keep the security of the Lib as high as
possible and don't want do open any issues. If getConnecitonPool() as public is
no problem, then I'm fine with this solution.
> BasicDataSource should support GenericObjectPool->getStatsString()
> ------------------------------------------------------------------
>
> Key: DBCP-586
> URL: https://issues.apache.org/jira/browse/DBCP-586
> Project: Commons DBCP
> Issue Type: Improvement
> Affects Versions: 2.9.0
> Reporter: Thomas Freller
> Priority: Major
> Labels: improvement
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> Hello,
> I'm developing a Application that is running on a default JRE without an
> Webserver/JMX.
> For optimizing Database connections it would be very useful if i could access
>
> BasicDataSource->GenericObjectPool->{*}getStatsString(){*}
>
> I don't see any reason why this Method is protected and not public in
> GenericObjectPool.
> Then BasicDataSource shoud provide a method getStatsString() or the values
> that represent the statistic data.
>
> If there is any other easy way to access this data within my Java Code I'll
> implement this if you could give me an example how to get this working
> easily. I don't want do configure any jmx stuff.
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)