Package com.linkedin.davinci.stats
Class VeniceVersionedStats<STATS,STATS_REPORTER extends AbstractVeniceStatsReporter<STATS>>
java.lang.Object
com.linkedin.davinci.stats.VeniceVersionedStats<STATS,STATS_REPORTER>
public class VeniceVersionedStats<STATS,STATS_REPORTER extends AbstractVeniceStatsReporter<STATS>>
extends Object
-
Constructor Summary
ConstructorDescriptionVeniceVersionedStats
(io.tehuti.metrics.MetricsRepository metricsRepository, String storeName, Supplier<STATS> statsInitiator, StatsSupplier<STATS_REPORTER> reporterSupplier) -
Method Summary
Modifier and TypeMethodDescriptionaddVersion
(int version) it.unimi.dsi.fastutil.ints.IntSet
return a deep copy of all version numbersint
int
protected STATS
getStats
(int version) protected STATS
void
void
removeVersion
(int version) void
setCurrentVersion
(int version) void
setFutureVersion
(int version) void
-
Constructor Details
-
VeniceVersionedStats
public VeniceVersionedStats(io.tehuti.metrics.MetricsRepository metricsRepository, String storeName, Supplier<STATS> statsInitiator, StatsSupplier<STATS_REPORTER> reporterSupplier)
-
-
Method Details
-
getTotalStats
-
registerConditionalStats
public void registerConditionalStats() -
unregisterStats
public void unregisterStats() -
getCurrentVersion
public int getCurrentVersion() -
getFutureVersion
public int getFutureVersion() -
setCurrentVersion
public void setCurrentVersion(int version) -
setFutureVersion
public void setFutureVersion(int version) -
getAllVersionNumbers
public it.unimi.dsi.fastutil.ints.IntSet getAllVersionNumbers()return a deep copy of all version numbers -
getStats
-
addVersion
-
removeVersion
public void removeVersion(int version)
-