}
@Override
public void service(HttpRequest httpReq, HttpResponse httpRes)
throws IOException {
HttpConnectionPool sc = pool;
HttpWriter out = httpRes.getBodyWriter();
httpRes.setContentType("text/plain");
// TODO: use JMX/DynamicObject to get all public info
out.println("hosts=" + sc.getTargetCount());
out.println("waiting=" + sc.getSocketCount());
out.println("closed=" + sc.getClosedSockets());
out.println();
for (RemoteServer remote: sc.getServers()) {
out.append(remote.target);
out.append("=");
List<HttpConnection> connections = remote.getConnections();
out.println(Integer.toString(connections.size()));