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 voidpublish(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:ServerStatisticsStoragePersists a value to the storage- Specified by:
publishin 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:ServerStatisticsStorageRetrieves all values published in provided time range- Specified by:
retrievein interfaceServerStatisticsStorage- Parameters:
key- key of these valuessince- start of the time rangetill- end of the time range- Returns:
- list of pairs {value,timestamp}
-
-