Package com.linkedin.venice.stats
Class HttpConnectionPoolStats
- java.lang.Object
-
- com.linkedin.venice.stats.AbstractVeniceStats
-
- com.linkedin.venice.stats.HttpConnectionPoolStats
-
public class HttpConnectionPoolStats extends AbstractVeniceStats
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.stats.AbstractVeniceStats
DELIMITER
-
-
Constructor Summary
Constructors Constructor Description HttpConnectionPoolStats(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConnectionPoolManager(org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager connectionManager)
void
addStatsForRoute(java.lang.String hostName)
This function is used to gradually populate per-route stats.long
getPendingRequestCount(java.lang.String hostname)
void
recordConnectionLeaseRequestLatency(long latency)
void
recordPendingRequestCount(long pendingRequestCount)
void
removeConnectionPoolManager(org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager connectionManager)
-
Methods inherited from class com.linkedin.venice.stats.AbstractVeniceStats
avgAndMax, avgAndTotal, getMetricsRepository, getName, getSensorFullName, getSensorFullName, isTotalStats, minAndMax, registerOnlyTotalRate, registerOnlyTotalSensor, registerPerStoreAndTotalSensor, registerSensor, registerSensor, registerSensor, registerSensor, registerSensorAttributeGauge, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorIfAbsent, registerSensorWithAggregate, registerSensorWithAggregate, unregisterAllSensors
-
-
-
-
Method Detail
-
addConnectionPoolManager
public void addConnectionPoolManager(org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager connectionManager)
-
removeConnectionPoolManager
public void removeConnectionPoolManager(org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager connectionManager)
-
addStatsForRoute
public void addStatsForRoute(java.lang.String hostName)
This function is used to gradually populate per-route stats.- Parameters:
hostName
-
-
recordConnectionLeaseRequestLatency
public void recordConnectionLeaseRequestLatency(long latency)
-
recordPendingRequestCount
public void recordPendingRequestCount(long pendingRequestCount)
-
getPendingRequestCount
public long getPendingRequestCount(java.lang.String hostname)
-
-