Class ArtifactsStorageUsagesProviderImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.storage.ArtifactsStorageUsagesProviderImpl
-
- All Implemented Interfaces:
ArtifactsStorageUsagesProvider
public class ArtifactsStorageUsagesProviderImpl extends Object implements ArtifactsStorageUsagesProvider
Created by Nikita.Skvortsov date: 16.03.2017.
-
-
Constructor Summary
Constructors Constructor Description ArtifactsStorageUsagesProviderImpl(SQLRunnerEx sqlRunner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Long>getRecentUsages(String storageSettingsId, int maxBuilds)Returns ids of most recent builds using the specified artifacts storage.intgetUsagesCount(String storageSettingsId, int maxBuilds)Returns number of builds using the specified artifacts storage.
-
-
-
Constructor Detail
-
ArtifactsStorageUsagesProviderImpl
public ArtifactsStorageUsagesProviderImpl(@NotNull SQLRunnerEx sqlRunner)
-
-
Method Detail
-
getUsagesCount
public int getUsagesCount(@NotNull String storageSettingsId, int maxBuilds)Description copied from interface:ArtifactsStorageUsagesProviderReturns number of builds using the specified artifacts storage. The maximum number of returned builds can be limited by maxBuilds argument to increase performance- Specified by:
getUsagesCountin interfaceArtifactsStorageUsagesProvider- Parameters:
storageSettingsId- artifacts storage settings idmaxBuilds- max number of builds to return- Returns:
-
getRecentUsages
@NotNull public List<Long> getRecentUsages(@NotNull String storageSettingsId, int maxBuilds)
Description copied from interface:ArtifactsStorageUsagesProviderReturns ids of most recent builds using the specified artifacts storage. The maximum number of returned builds is controlled by maxBuilds argument.- Specified by:
getRecentUsagesin interfaceArtifactsStorageUsagesProvider- Parameters:
storageSettingsId- artifacts storage settings idmaxBuilds- max number of builds to return- Returns:
-
-