Interface ServerUsageStatsCollector
-
- All Known Implementing Classes:
ServerUsageStatsCollectorImpl
public interface ServerUsageStatsCollector
Created by Andrey Titov on 2/8/17.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ServerUsageStatsCollector.ServerUsageStats
Data bean containing server usage data
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerUsageStatsCollector.ServerUsageStats
collectData(long since, long till)
void
ignoreAll(long timestamp)
Reset all current data (saves zeroes to the DB)void
persistAll(long timestamp)
Persist all current data to the DB with provided timestamp
-
-
-
Method Detail
-
collectData
@NotNull ServerUsageStatsCollector.ServerUsageStats collectData(long since, long till)
- Parameters:
since
- Start of required rangetill
- End of required range- Returns:
- Server usage data stored in the DB for the provided range. Doesn't include current (not saved) value.
-
persistAll
void persistAll(long timestamp)
Persist all current data to the DB with provided timestamp- Parameters:
timestamp
-
-
ignoreAll
void ignoreAll(long timestamp)
Reset all current data (saves zeroes to the DB)- Parameters:
timestamp
-
-
-