Class ServerStatisticsStorageImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.serverStatistics.db.ServerStatisticsStorageImpl
-
- All Implemented Interfaces:
ServerStatisticsStorage
public class ServerStatisticsStorageImpl extends Object implements ServerStatisticsStorage
Created by Andrey Titov on 1/30/17.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.impl.serverStatistics.db.ServerStatisticsStorage
ServerStatisticsStorage.Key
-
-
Constructor Summary
Constructors Constructor Description ServerStatisticsStorageImpl(SQLRunnerEx sqlRunner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
publish(ServerStatisticsStorage.Key key, long value, long timestamp)
Persists a value to the storageList<Pair<Long,Long>>
retrieve(ServerStatisticsStorage.Key key, long since, long till)
Retrieves all values published in provided time range
-
-
-
Constructor Detail
-
ServerStatisticsStorageImpl
public ServerStatisticsStorageImpl(@NotNull SQLRunnerEx sqlRunner)
-
-
Method Detail
-
publish
public void publish(@NotNull ServerStatisticsStorage.Key key, long value, long timestamp)
Description copied from interface:ServerStatisticsStorage
Persists a value to the storage- Specified by:
publish
in interfaceServerStatisticsStorage
- Parameters:
key
- key of this valuevalue
- value to persisttimestamp
- timestamp to persist
-
retrieve
@NotNull public List<Pair<Long,Long>> retrieve(@NotNull ServerStatisticsStorage.Key key, long since, long till)
Description copied from interface:ServerStatisticsStorage
Retrieves all values published in provided time range- Specified by:
retrieve
in interfaceServerStatisticsStorage
- Parameters:
key
- key of these valuessince
- start of the time rangetill
- end of the time range- Returns:
- list of pairs {value,timestamp}
-
-