Class HeartbeatVersionedStats
java.lang.Object
com.linkedin.davinci.stats.AbstractVeniceAggVersionedStats<HeartbeatStat,HeartbeatStatReporter>
com.linkedin.davinci.stats.ingestion.heartbeat.HeartbeatVersionedStats
- All Implemented Interfaces:
StoreDataChangedListener
public class HeartbeatVersionedStats
extends AbstractVeniceAggVersionedStats<HeartbeatStat,HeartbeatStatReporter>
-
Field Summary
Fields inherited from class com.linkedin.davinci.stats.AbstractVeniceAggVersionedStats
metadataRepository
-
Constructor Summary
ConstructorDescriptionHeartbeatVersionedStats
(io.tehuti.metrics.MetricsRepository metricsRepository, ReadOnlyStoreRepository metadataRepository, Supplier<HeartbeatStat> statsInitiator, StatsSupplier<HeartbeatStatReporter> reporterSupplier, Map<String, Map<Integer, Map<Integer, Map<String, HeartbeatTimeStampEntry>>>> leaderMonitors, Map<String, Map<Integer, Map<Integer, Map<String, HeartbeatTimeStampEntry>>>> followerMonitors) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
void
recordFollowerLag
(String storeName, int version, String region, long heartbeatTs, boolean isReadyToServe) void
recordLeaderLag
(String storeName, int version, String region, long heartbeatTs) Methods inherited from class com.linkedin.davinci.stats.AbstractVeniceAggVersionedStats
addStore, getCurrentVersion, getFutureVersion, getStats, getTotalStats, handleStoreDeleted, isFutureVersion, recordVersionedAndTotalStat, registerConditionalStats, updateStatsVersionInfo, updateTotalStats
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 Details
-
HeartbeatVersionedStats
public HeartbeatVersionedStats(io.tehuti.metrics.MetricsRepository metricsRepository, ReadOnlyStoreRepository metadataRepository, Supplier<HeartbeatStat> statsInitiator, StatsSupplier<HeartbeatStatReporter> reporterSupplier, Map<String, Map<Integer, Map<Integer, Map<String, HeartbeatTimeStampEntry>>>> leaderMonitors, Map<String, Map<Integer, Map<Integer, Map<String, HeartbeatTimeStampEntry>>>> followerMonitors)
-
-
Method Details
-
recordLeaderLag
-
recordFollowerLag
-
loadAllStats
public void loadAllStats()- Overrides:
loadAllStats
in classAbstractVeniceAggVersionedStats<HeartbeatStat,
HeartbeatStatReporter>
-
handleStoreCreated
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
- Overrides:
handleStoreCreated
in classAbstractVeniceAggVersionedStats<HeartbeatStat,
HeartbeatStatReporter>
-
handleStoreChanged
- Specified by:
handleStoreChanged
in interfaceStoreDataChangedListener
- Overrides:
handleStoreChanged
in classAbstractVeniceAggVersionedStats<HeartbeatStat,
HeartbeatStatReporter>
-