public class HTTPPerformanceData
extends java.lang.Object
« ------------------------------------------------- <processing time> ----------------------------------------------- » « ---------- <execution time> ------------------------------------------------ » First call or retry: [SSL prepare time][TCP connect time][SSL handshake time]<request send time><response receive time> First call or retry: [SSL prepare time][TCP connect time][SSL handshake time]<request header send time>[<request content send time>]<response first byte receive time><response header receive time>[<response content receive time>] ^ ^ | | | +-- [start retry timestamp] | +-- start processing timestamp [] = optional data, -1 if no such data are measured
Modifier and Type | Method and Description |
---|---|
void |
dumpToStdout()
For debug purpose only, dump the measured data to stdout.
|
float |
getExecutionThroughput()
Get the execution throughput of the HTTP call.
|
long |
getExecutionTime()
Get the execution time of the HTTP call.
|
int |
getNumberOfRetries()
Get the number of retries of the HTTP call.
|
long |
getProcessingTime()
Get the processing time of the HTTP call - inclusive the overhead time at client side to prepare/initialize the HTTP call.
|
long |
getRequestContentSendTime()
Get the elapsed time duration for sending the HTTP request content.
|
long |
getRequestHeaderSendTime()
Get the elapsed time duration for sending the HTTP request header.
|
long |
getRequestSendTime()
Get the elapsed time duration for sending the HTTP request (HTTP request header + HTTP request content, if any).
|
long |
getResponseContentReceiveTime()
Get the elapsed time duration for receiving the HTTP response content.
|
long |
getResponseFirstByteReceiveTime()
Get the elapsed time duration for receiving first byte of the HTTP response after the last byte of the HTTP request was sent.
|
long |
getResponseHeaderReceiveTime()
Get the elapsed time duration after the first byte of the HTTP response header has read until the last byte the HTTP response header has read.
|
long |
getResponseReceiveTime()
Get the elapsed time duration for receiving the HTTP response (HTTP response header + HTTP response content, if any).
|
long |
getSSLHandshakeTime()
Get the time elapsed to perform the SSL/TLS handshake with the server (after the TCP/IP connection was established).
|
long |
getSSLPrepareTime()
Get the time elapsed to prepare (initialize) the SSL/TLS protocol at client side, before the TCP/IP connection is opened to the server.
|
long |
getStartProcessingTimestamp()
Get the timestamp when HTTP call was becoming into the processing state.
|
long |
getStartRetryTimestamp()
Get the timestamp when the latest retry of the HTTP call was started.
|
long |
getTCPConnectTime()
Get the TCP/IP connect time for opening the network connection to the server.
|
long |
getTotalRequestSize()
Get the total sent HTTP request size.
|
long |
getTotalResponseSize()
Get the total received HTTP response size.
|
boolean |
isReusedConnection()
Get if an existing network connection was reused to execute the HTTP call.
|
JsonObject |
toJsonObject()
Get a JSON object of this instance.
|
public long getStartProcessingTimestamp()
public long getStartRetryTimestamp()
public int getNumberOfRetries()
public long getTotalRequestSize()
public long getTotalResponseSize()
public long getProcessingTime()
getSSLPrepareTime()
public long getExecutionTime()
public float getExecutionThroughput()
public boolean isReusedConnection()
public long getSSLPrepareTime()
isReusedConnection()
public long getTCPConnectTime()
isReusedConnection()
public long getSSLHandshakeTime()
isReusedConnection()
public long getRequestSendTime()
public long getRequestHeaderSendTime()
public long getRequestContentSendTime()
public long getResponseReceiveTime()
public long getResponseFirstByteReceiveTime()
public long getResponseHeaderReceiveTime()
public long getResponseContentReceiveTime()
public void dumpToStdout()
public JsonObject toJsonObject()