Package io.split.client.metrics
Class HttpMetrics
- java.lang.Object
-
- io.split.client.metrics.HttpMetrics
-
- All Implemented Interfaces:
DTOMetrics,Metrics
public class HttpMetrics extends Object implements Metrics, DTOMetrics
Created by adilaijaz on 9/4/15.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.split.engine.metrics.Metrics
Metrics.NoopMetrics
-
-
Constructor Summary
Constructors Constructor Description HttpMetrics(org.apache.http.impl.client.CloseableHttpClient client, URI root)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcount(Counter dto)voidcount(String counter, long delta)Adjusts the specified counter by a given delta.static HttpMetricscreate(org.apache.http.impl.client.CloseableHttpClient client, URI root)voidtime(Latency dto)voidtime(String operation, long timeInMs)Records an execution time in milliseconds for the specified named operation.
-
-
-
Constructor Detail
-
HttpMetrics
public HttpMetrics(org.apache.http.impl.client.CloseableHttpClient client, URI root) throws URISyntaxException- Throws:
URISyntaxException
-
-
Method Detail
-
create
public static HttpMetrics create(org.apache.http.impl.client.CloseableHttpClient client, URI root) throws URISyntaxException
- Throws:
URISyntaxException
-
time
public void time(Latency dto)
- Specified by:
timein interfaceDTOMetrics
-
count
public void count(Counter dto)
- Specified by:
countin interfaceDTOMetrics
-
count
public void count(String counter, long delta)
Description copied from interface:MetricsAdjusts the specified counter by a given delta.This method is is non-blocking and is guaranteed not to throw an exception.
-
-