Class ArtifactStorageDiskUsageInfoProviderImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.statistics.diskusage.impl.ArtifactStorageDiskUsageInfoProviderImpl
-
- All Implemented Interfaces:
ArtifactStorageDiskUsageInfoProvider
public class ArtifactStorageDiskUsageInfoProviderImpl extends Object implements ArtifactStorageDiskUsageInfoProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXTERNAL_STORAGES_SUPPORT_ENABLED_PROPERTY
-
Constructor Summary
Constructors Constructor Description ArtifactStorageDiskUsageInfoProviderImpl(ServerSettings serverSettings, ServerPaths serverPaths, ExternalStoragesDiskUsageInfoProvider externalStoragesDiskUsageInfoProvider, BuiltInStorageIdAccessor builtInStorageIdAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ArtifactStorageDiskUsageInfo>
getAllDiskUsageInfo()
List<ArtifactStorageDiskUsageInfo>
getBuiltInStorageDiskUsageInfo()
Provides built in storages, registered in the system.ArtifactStorageDiskUsageInfo
getDefaultStorageInfo()
List<ArtifactStorageDiskUsageInfo>
getExternalStoragesDiskUsageInfo()
-
-
-
Field Detail
-
EXTERNAL_STORAGES_SUPPORT_ENABLED_PROPERTY
public static final String EXTERNAL_STORAGES_SUPPORT_ENABLED_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ArtifactStorageDiskUsageInfoProviderImpl
public ArtifactStorageDiskUsageInfoProviderImpl(@NotNull ServerSettings serverSettings, @NotNull ServerPaths serverPaths, @NotNull ExternalStoragesDiskUsageInfoProvider externalStoragesDiskUsageInfoProvider, @NotNull BuiltInStorageIdAccessor builtInStorageIdAccessor)
-
-
Method Detail
-
getAllDiskUsageInfo
@NotNull public List<ArtifactStorageDiskUsageInfo> getAllDiskUsageInfo()
- Specified by:
getAllDiskUsageInfo
in interfaceArtifactStorageDiskUsageInfoProvider
- Returns:
- a list of all registered in the system storages, including external and built-in ones
-
getExternalStoragesDiskUsageInfo
@NotNull public List<ArtifactStorageDiskUsageInfo> getExternalStoragesDiskUsageInfo()
- Specified by:
getExternalStoragesDiskUsageInfo
in interfaceArtifactStorageDiskUsageInfoProvider
-
getBuiltInStorageDiskUsageInfo
@NotNull public List<ArtifactStorageDiskUsageInfo> getBuiltInStorageDiskUsageInfo()
Description copied from interface:ArtifactStorageDiskUsageInfoProvider
Provides built in storages, registered in the system. The first item represents current default storage- Specified by:
getBuiltInStorageDiskUsageInfo
in interfaceArtifactStorageDiskUsageInfoProvider
-
getDefaultStorageInfo
@Nullable public ArtifactStorageDiskUsageInfo getDefaultStorageInfo()
- Specified by:
getDefaultStorageInfo
in interfaceArtifactStorageDiskUsageInfoProvider
- Returns:
- default storage info if it exists
-
-