public interface StoreStats
Store
.Modifier and Type | Method and Description |
---|---|
java.util.Map<StatsReportType,StatsSnapshot> |
getStatsSnapshots(java.util.Set<StatsReportType> statsReportTypes,
long referenceTimeInMs)
Fetches specified types of stats for corresponding
Store as a map whose key is StatsReportType and
value is StatsSnapshot . |
com.github.ambry.utils.Pair<java.lang.Long,java.lang.Long> |
getValidSize(TimeRange timeRange)
Gets the size of valid data at a particular point in time.
|
com.github.ambry.utils.Pair<java.lang.Long,java.lang.Long> getValidSize(TimeRange timeRange) throws StoreException
TimeRange
. The store will return valid data size for a point
in time within the specified range.
The following data are considered as valid data for this API:
1. PUT with no expiry and no corresponding DELETE
2. PUT expiring at t_exp but t_exp_ref < t_exp
3. PUT with corresponding DELETE at time t_delete but t_del_ref < t_delete
4. DELETE record
For this API, t_del_ref is based on the given TimeRange
and t_exp_ref is the time when the API is called.timeRange
- the reference TimeRange
at which the data is requested. Defines both the reference time
and the acceptable resolutionPair
whose first element is the time at which stats was collected (in ms) and whose second
element is the valid data sizeStoreException
java.util.Map<StatsReportType,StatsSnapshot> getStatsSnapshots(java.util.Set<StatsReportType> statsReportTypes, long referenceTimeInMs) throws StoreException
Store
as a map whose key is StatsReportType
and
value is StatsSnapshot
.statsReportTypes
- the specified StatsReportType
to fetchreferenceTimeInMs
- the reference time in ms until which deletes and expiration are relevantStatsReportType
to StatsSnapshot
StoreException