You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Dmitry Potapov (JIRA)" <ji...@apache.org> on 2014/06/30 06:33:24 UTC

[jira] [Updated] (HTTPCORE-374) ConnPoolControl should provide list of known routes

     [ https://issues.apache.org/jira/browse/HTTPCORE-374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Potapov updated HTTPCORE-374:
------------------------------------

    Attachment: 01-PoolingNHttpClientConnectionManager-getRoutes.patch
                01-PoolingHttpClientConnectionManager-getRoutes.patch

Oleg,

According to their pom.xml, both HttpClient and HttpAsyncClient now depends on HttpCore-4.4-alpha1, so .getRoutes() can be added to connection managers. I've attached patches against latest revisions. Can we have them in trunk, so I can stop using my custom builds with patches?

Thanks in advance.

> ConnPoolControl should provide list of known routes
> ---------------------------------------------------
>
>                 Key: HTTPCORE-374
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-374
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore, HttpCore NIO
>            Reporter: Dmitry Potapov
>            Priority: Trivial
>             Fix For: 4.4-alpha1
>
>         Attachments: 01-PoolingHttpClientConnectionManager-getRoutes.patch, 01-PoolingNHttpClientConnectionManager-getRoutes.patch, httpasyncclient-getRoutes.patch, httpasyncclient-getRoutes.patch, httpclient-getRoutes.patch, httpclient-getRoutes.patch, httpcore-getRoutes.patch, httpcore-getRoutes.patch
>
>
> Currently ConnPoolControl.getStats(HttpRoute) requires caller to store known routes somewhere to get complete detailed connections stats, for example, when checking for slow backends.
> My suggestion is to add Set<T> getRoutes(); function to ConnPoolControl which will return snapshot of all routes served by this pool.
> With this function it will be able to get all routes stats, detect the weak links among backends and report them.
> I understand, that this change will break compatibility and won't be shipped with any 4.3.x version, but can we have this in 4.4?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org