Package com.linkedin.venice.stats
Class AbstractVeniceAggStats<T extends AbstractVeniceStats>
- java.lang.Object
-
- com.linkedin.venice.stats.AbstractVeniceAggStats<T>
-
- Direct Known Subclasses:
AbstractVeniceAggStoreStats
,AggHostHealthStats
,AggPartitionHealthStats
,AggRocksDBStats
,AggServerQuotaUsageStats
public abstract class AbstractVeniceAggStats<T extends AbstractVeniceStats> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STORE_NAME_FOR_TOTAL_STAT
protected java.util.Map<java.lang.String,T>
storeStats
protected T
totalStats
-
Constructor Summary
Constructors Constructor Description AbstractVeniceAggStats(java.lang.String clusterName, io.tehuti.metrics.MetricsRepository metricsRepository)
AbstractVeniceAggStats(java.lang.String clusterName, io.tehuti.metrics.MetricsRepository metricsRepository, StatsSupplier<T> statsSupplier, boolean perClusterAggregate)
clusterName is used to create per cluster aggregate stats andVeniceMetricsDimensions
If perClusterAggregate is true, it will create per cluster aggregates with storeName as "total."
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getNullableStoreStats(java.lang.String storeName)
T
getStoreStats(java.lang.String storeName)
T
getTotalStats()
void
setStatsSupplier(StatsSupplier<T> statsSupplier)
-
-
-
Field Detail
-
STORE_NAME_FOR_TOTAL_STAT
public static final java.lang.String STORE_NAME_FOR_TOTAL_STAT
- See Also:
- Constant Field Values
-
totalStats
protected T extends AbstractVeniceStats totalStats
-
storeStats
protected final java.util.Map<java.lang.String,T extends AbstractVeniceStats> storeStats
-
-
Constructor Detail
-
AbstractVeniceAggStats
public AbstractVeniceAggStats(java.lang.String clusterName, io.tehuti.metrics.MetricsRepository metricsRepository)
-
AbstractVeniceAggStats
public AbstractVeniceAggStats(java.lang.String clusterName, io.tehuti.metrics.MetricsRepository metricsRepository, StatsSupplier<T> statsSupplier, boolean perClusterAggregate)
clusterName is used to create per cluster aggregate stats andVeniceMetricsDimensions
If perClusterAggregate is true, it will create per cluster aggregates with storeName as "total."
-
-
Method Detail
-
setStatsSupplier
public void setStatsSupplier(StatsSupplier<T> statsSupplier)
-
getStoreStats
public T getStoreStats(java.lang.String storeName)
-
getNullableStoreStats
public T getNullableStoreStats(java.lang.String storeName)
-
getTotalStats
public T getTotalStats()
-
-