Package com.linkedin.venice.stats
Class AggServerQuotaTokenBucketStats
- java.lang.Object
-
- com.linkedin.venice.stats.AbstractVeniceAggStats<ServerQuotaTokenBucketStats>
-
- com.linkedin.venice.stats.AggServerQuotaTokenBucketStats
-
- All Implemented Interfaces:
StoreDataChangedListener
public class AggServerQuotaTokenBucketStats extends AbstractVeniceAggStats<ServerQuotaTokenBucketStats> implements StoreDataChangedListener
AggServerQuotaTokenBucketStats
is the aggregate statistics forServerQuotaTokenBucketStats
. It recomputes the aggregate metrics when store change event happens.
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.stats.AbstractVeniceAggStats
STORE_NAME_FOR_TOTAL_STAT, storeStats, totalStats
-
-
Constructor Summary
Constructors Constructor Description AggServerQuotaTokenBucketStats(io.tehuti.metrics.MetricsRepository metricsRepository, ReadQuotaEnforcementHandler quotaEnforcer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleStoreChanged(Store store)
void
handleStoreCreated(Store store)
Do NOT try to acquire the lock of store repository again in the implementation, otherwise a dead lock issue will happen.void
handleStoreDeleted(java.lang.String storeName)
void
initializeStatsForStore(java.lang.String storeName)
-
Methods inherited from class com.linkedin.venice.stats.AbstractVeniceAggStats
getStoreStats, getTotalStats, setStatsSupplier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.linkedin.venice.meta.StoreDataChangedListener
handleStoreDeleted
-
-
-
-
Constructor Detail
-
AggServerQuotaTokenBucketStats
public AggServerQuotaTokenBucketStats(io.tehuti.metrics.MetricsRepository metricsRepository, ReadQuotaEnforcementHandler quotaEnforcer)
-
-
Method Detail
-
handleStoreCreated
public void handleStoreCreated(Store store)
Description copied from interface:StoreDataChangedListener
Do NOT try to acquire the lock of store repository again in the implementation, otherwise a dead lock issue will happen.- Specified by:
handleStoreCreated
in interfaceStoreDataChangedListener
-
handleStoreDeleted
public void handleStoreDeleted(java.lang.String storeName)
- Specified by:
handleStoreDeleted
in interfaceStoreDataChangedListener
-
handleStoreChanged
public void handleStoreChanged(Store store)
- Specified by:
handleStoreChanged
in interfaceStoreDataChangedListener
-
initializeStatsForStore
public void initializeStatsForStore(java.lang.String storeName)
-
-