Package com.linkedin.venice.router.stats
Class RouteHttpRequestStats
- java.lang.Object
-
- com.linkedin.venice.router.stats.RouteHttpRequestStats
-
public class RouteHttpRequestStats extends java.lang.Object
This class stores the stats for combined all type(SINGLE/MULTI/COMPUTE etc) of Router requests to the HttpAsync client compared toRouteHttpStats
which stores only per type stats.
-
-
Constructor Summary
Constructors Constructor Description RouteHttpRequestStats(io.tehuti.metrics.MetricsRepository metricsRepository, StorageNodeClient storageNodeClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getPendingRequestCount(java.lang.String hostName)
void
recordFinishedRequest(java.lang.String hostName)
void
recordPendingRequest(java.lang.String hostName)
void
recordUnhealthyQueueDuration(java.lang.String hostName, double duration)
-
-
-
Constructor Detail
-
RouteHttpRequestStats
public RouteHttpRequestStats(io.tehuti.metrics.MetricsRepository metricsRepository, StorageNodeClient storageNodeClient)
-
-
Method Detail
-
recordPendingRequest
public void recordPendingRequest(java.lang.String hostName)
-
recordFinishedRequest
public void recordFinishedRequest(java.lang.String hostName)
-
recordUnhealthyQueueDuration
public void recordUnhealthyQueueDuration(java.lang.String hostName, double duration)
-
getPendingRequestCount
public long getPendingRequestCount(java.lang.String hostName)
-
-