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 java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description VeniceVersionedStats(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String storeName, java.util.function.Supplier<STATS> statsInitiator, StatsSupplier<STATS_REPORTER> reporterSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description STATS
addVersion(int version)
it.unimi.dsi.fastutil.ints.IntSet
getAllVersionNumbers()
return a deep copy of all version numbersint
getCurrentVersion()
int
getFutureVersion()
protected STATS
getStats(int version)
protected STATS
getTotalStats()
void
registerConditionalStats()
void
removeVersion(int version)
void
setCurrentVersion(int version)
void
setFutureVersion(int version)
void
unregisterStats()
-
-
-
Constructor Detail
-
VeniceVersionedStats
public VeniceVersionedStats(io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String storeName, java.util.function.Supplier<STATS> statsInitiator, StatsSupplier<STATS_REPORTER> reporterSupplier)
-
-
Method Detail
-
getTotalStats
protected STATS 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
protected STATS getStats(int version)
-
addVersion
public STATS addVersion(int version)
-
removeVersion
public void removeVersion(int version)
-
-