public class HTTPConnectionStatistic
extends java.lang.Object
--- vvv --- HTTPConnectionStatistic --- vvv --- https://www.dkfqa.com:443 | Network Connections: total created = 2, total reused = 0 | SSL Prepare Time: average = 696 ms, min = 0 ms, max = 1391 ms, latest = 0 ms | TCP Connect Time: average = 201 ms, min = 189 ms, max = 212 ms, latest = 189 ms | SSL Handshake Time: average = 1036 ms, min = 852 ms, max = 1219 ms, latest = 852 ms https://www.google.ch:443 | Network Connections: total created = 1, total reused = 1 | SSL Prepare Time: average = 0 ms, min = 0 ms, max = 0 ms, latest = 0 ms | TCP Connect Time: average = 136 ms, min = 136 ms, max = 136 ms, latest = 136 ms | SSL Handshake Time: average = 179 ms, min = 179 ms, max = 179 ms, latest = 179 ms --- ^^^ --- HTTPConnectionStatistic --- ^^^ ---
HTTPClient.getConnectionStatistic()
Modifier and Type | Method and Description |
---|---|
void |
dumpToStdout()
Dump the network connection statistic to stdout.
|
java.util.ArrayList<HTTPConnectionStatisticElement> |
getAllStatisticElements(boolean sortByProtocolHostPort)
Get all elements of the network connection statistic.
|
long |
getAverageHTTPKeepAliveEfficiency()
Get the average HTTP keep alive efficiency, calculated overall Web servers.
|
long |
getAverageSSLHandshakeTime()
Get the average SSL handshake time, calculated overall Web servers.
|
long |
getAverageTCPConnectTime()
Get the average TCP/IP connect time for opening the network connection to the server, calculated overall Web servers.
|
long |
getNumNewCreatedConnections()
Get the total number of new, successfully connected TCP/IP connections, calculated overall Web servers.
|
long |
getNumReusedConnections()
Get the total number of successfully reused TCP/IP connections, calculated overall Web servers.
|
HTTPConnectionStatisticElement |
getStatisticElement(java.lang.String protocol,
java.lang.String host,
int port)
Get a particular element of the network connection statistic.
|
public HTTPConnectionStatisticElement getStatisticElement(java.lang.String protocol, java.lang.String host, int port)
protocol
- the protocol, 'http' or 'https'host
- the host name or IP addressport
- the TCP/IP port numberpublic java.util.ArrayList<HTTPConnectionStatisticElement> getAllStatisticElements(boolean sortByProtocolHostPort)
sortByProtocolHostPort
- if true the sort the elements 1) by protocol, 2) by host, 3) by portpublic long getAverageTCPConnectTime()
public long getAverageHTTPKeepAliveEfficiency()
public long getNumNewCreatedConnections()
public long getNumReusedConnections()
public long getAverageSSLHandshakeTime()
public void dumpToStdout()
getAllStatisticElements(boolean)