Class ExternalStorageIdAccessorImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.statistics.diskusage.impl.ExternalStorageIdAccessorImpl
-
- All Implemented Interfaces:
ExternalStorageIdAccessor
public class ExternalStorageIdAccessorImpl extends Object implements ExternalStorageIdAccessor
-
-
Field Summary
Fields Modifier and Type Field Description static String
MAXIMUM_STORAGE_IDS_CACHE_PROPERTY
-
Constructor Summary
Constructors Constructor Description ExternalStorageIdAccessorImpl(ServerArtifactHelperImpl serverArtifactHelper, ArtifactsStorageSettingsManager settingsManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ExternalStorageId>
getStorageId(File artifactsDirectory, SProject project)
Optional<ExternalStorageId>
getStorageId(ArtifactListData artifactListData, SProject project)
-
-
-
Field Detail
-
MAXIMUM_STORAGE_IDS_CACHE_PROPERTY
public static final String MAXIMUM_STORAGE_IDS_CACHE_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExternalStorageIdAccessorImpl
public ExternalStorageIdAccessorImpl(@NotNull ServerArtifactHelperImpl serverArtifactHelper, @NotNull ArtifactsStorageSettingsManager settingsManager)
-
-
Method Detail
-
getStorageId
@NotNull public Optional<ExternalStorageId> getStorageId(@NotNull File artifactsDirectory, @NotNull SProject project)
- Specified by:
getStorageId
in interfaceExternalStorageIdAccessor
- Returns:
- id of a storage, accossiated with this build directory and project, or null, if this build doesn't use external storages
-
getStorageId
@NotNull public Optional<ExternalStorageId> getStorageId(@NotNull ArtifactListData artifactListData, @NotNull SProject project)
- Specified by:
getStorageId
in interfaceExternalStorageIdAccessor
-
-