Interface ServerUsageStatsCollector
-
- All Known Implementing Classes:
ServerUsageStatsCollectorImpl
public interface ServerUsageStatsCollectorCreated by Andrey Titov on 2/8/17.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classServerUsageStatsCollector.ServerUsageStatsData bean containing server usage data
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerUsageStatsCollector.ServerUsageStatscollectData(long since, long till)voidignoreAll(long timestamp)Reset all current data (saves zeroes to the DB)voidpersistAll(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-
-
-