Class ServerUsageStatsCollectorImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.serverStatistics.ServerUsageStatsCollectorImpl
-
- All Implemented Interfaces:
ServerUsageStatsCollector
public class ServerUsageStatsCollectorImpl extends Object implements ServerUsageStatsCollector
Created by Andrey Titov on 2/2/17.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.impl.serverStatistics.ServerUsageStatsCollector
ServerUsageStatsCollector.ServerUsageStats
-
-
Constructor Summary
Constructors Constructor Description ServerUsageStatsCollectorImpl(List<ServerUsageStatsProvider.SimpleServerUsageStatsProvider> usageProviders, List<ServerUsageStatsProvider.PeriodicalServerUsageStatsProvider> periodicalServerUsageStatsProviders)
-
Method Summary
All Methods Instance Methods Concrete 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
-
-
-
Constructor Detail
-
ServerUsageStatsCollectorImpl
public ServerUsageStatsCollectorImpl(@NotNull List<ServerUsageStatsProvider.SimpleServerUsageStatsProvider> usageProviders, @NotNull List<ServerUsageStatsProvider.PeriodicalServerUsageStatsProvider> periodicalServerUsageStatsProviders)
-
-
Method Detail
-
collectData
@NotNull public ServerUsageStatsCollector.ServerUsageStats collectData(long since, long till)
- Specified by:
collectDatain interfaceServerUsageStatsCollector- 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
public void persistAll(long timestamp)
Description copied from interface:ServerUsageStatsCollectorPersist all current data to the DB with provided timestamp- Specified by:
persistAllin interfaceServerUsageStatsCollector
-
ignoreAll
public void ignoreAll(long timestamp)
Description copied from interface:ServerUsageStatsCollectorReset all current data (saves zeroes to the DB)- Specified by:
ignoreAllin interfaceServerUsageStatsCollector
-
-