public interface HttpClientMetrics<R,W,S,E,T> extends TCPMetrics<S>
VertxMetrics createMetrics method that created and returned
this metrics object.
| Modifier and Type | Method and Description |
|---|---|
void |
closeEndpoint(String host,
int port,
E endpointMetric)
Called when an endpoint is closed.
|
W |
connected(E endpointMetric,
S socketMetric,
WebSocket webSocket)
Called when a web socket connects.
|
E |
createEndpoint(String host,
int port,
int maxPoolSize)
Provides metrics for a particular endpoint
|
void |
dequeueRequest(E endpointMetric,
T taskMetric)
Called when a request for connection is satisfied.
|
void |
disconnected(W webSocketMetric)
Called when the web socket has disconnected.
|
void |
endpointConnected(E endpointMetric,
S socketMetric)
Called when a connection is made to a endpoint.
|
void |
endpointDisconnected(E endpointMetric,
S socketMetric)
Called when a connection to an endpoint is closed.
|
T |
enqueueRequest(E endpointMetric)
Called when a connection is requested.
|
R |
requestBegin(E endpointMetric,
S socketMetric,
SocketAddress localAddress,
SocketAddress remoteAddress,
HttpClientRequest request)
Called when an http client request begins.
|
void |
requestEnd(R requestMetric)
Callend when an http client request ends.
|
void |
requestReset(R requestMetric)
Called when the http client request couldn't complete successfully, for instance the connection
was closed before the response was received.
|
void |
responseBegin(R requestMetric,
HttpClientResponse response)
Called when an http client response begins.
|
void |
responseEnd(R requestMetric,
HttpClientResponse response)
Called when an http client response has ended
|
R |
responsePushed(E endpointMetric,
S socketMetric,
SocketAddress localAddress,
SocketAddress remoteAddress,
HttpClientRequest request)
Called when an http client response is pushed.
|
connected, disconnectedbytesRead, bytesWritten, exceptionOccurredE createEndpoint(String host, int port, int maxPoolSize)
host - the endpoint host possibly unresolvedport - the endpoint portmaxPoolSize - the server max pool sizevoid closeEndpoint(String host, int port, E endpointMetric)
host - the server hostport - the server portendpointMetric - the server metric returned by createEndpoint(java.lang.String, int, int)T enqueueRequest(E endpointMetric)
endpointMetric - the endpoint metric returned by createEndpoint(java.lang.String, int, int)void dequeueRequest(E endpointMetric, T taskMetric)
endpointMetric - the endpoint metric returned by createEndpoint(java.lang.String, int, int)void endpointConnected(E endpointMetric, S socketMetric)
endpointMetric - the endpoint metricsocketMetric - the socket metricvoid endpointDisconnected(E endpointMetric, S socketMetric)
endpointMetric - the endpoint metricsocketMetric - the socket metricR requestBegin(E endpointMetric, S socketMetric, SocketAddress localAddress, SocketAddress remoteAddress, HttpClientRequest request)
requestEnd(R) when the request
has ended or requestReset(R) if the request/response has failed before.endpointMetric - the endpoint metricsocketMetric - the socket metriclocalAddress - the local addressremoteAddress - the remote addressrequest - the HttpClientRequestvoid requestEnd(R requestMetric)
requestMetric - the request metricvoid responseBegin(R requestMetric, HttpClientResponse response)
responseEnd(R, io.vertx.core.http.HttpClientResponse) when the response has ended
or requestReset(R) if the request/response has failed before.requestMetric - the request metricresponse - the HttpClientResponseR responsePushed(E endpointMetric, S socketMetric, SocketAddress localAddress, SocketAddress remoteAddress, HttpClientRequest request)
endpointMetric - the endpoint metricsocketMetric - the socket metriclocalAddress - the local addressremoteAddress - the remote addressrequest - the http server requestvoid requestReset(R requestMetric)
requestMetric - the request metricvoid responseEnd(R requestMetric, HttpClientResponse response)
requestMetric - the request metricresponse - the HttpClientResponseW connected(E endpointMetric, S socketMetric, WebSocket webSocket)
endpointMetric - the endpoint metricsocketMetric - the socket metricwebSocket - the server web socketvoid disconnected(W webSocketMetric)
webSocketMetric - the web socket metricCopyright © 2016. All rights reserved.