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.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
-
-
-
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:
collectData
in 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:ServerUsageStatsCollector
Persist all current data to the DB with provided timestamp- Specified by:
persistAll
in interfaceServerUsageStatsCollector
-
ignoreAll
public void ignoreAll(long timestamp)
Description copied from interface:ServerUsageStatsCollector
Reset all current data (saves zeroes to the DB)- Specified by:
ignoreAll
in interfaceServerUsageStatsCollector
-
-