Class ExternalStoragesDiskUsageInfoProviderImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.statistics.diskusage.impl.ExternalStoragesDiskUsageInfoProviderImpl
-
- All Implemented Interfaces:
ExternalStoragesDiskUsageInfoProvider
,ExternalStoragesDiskUsageInfoRegistry
public class ExternalStoragesDiskUsageInfoProviderImpl extends Object implements ExternalStoragesDiskUsageInfoRegistry
-
-
Constructor Summary
Constructors Constructor Description ExternalStoragesDiskUsageInfoProviderImpl(ProjectManager projectManager, ExternalStorageDiskUsageInfoFactory diskUsageInfoFactory, ExternalStoragesInfoPersister storagesInfoPersister, ExecutorServices executorServices, SecurityContextEx securityContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStorage(ExternalStorageId storageId, ArtifactStorageDiskUsageInfo diskUsageInfo)
Registers new storage with given storage id and disk usage infoOptional<ArtifactStorageDiskUsageInfo>
getDiskUsageInfo(ExternalStorageId storageId)
List<ArtifactStorageDiskUsageInfo>
getExternalStoragesInfo()
Collection<ExternalStorageId>
getStorageIds()
void
removeStorage(ExternalStorageId storageId)
Removes the storage with the corresponding id
-
-
-
Constructor Detail
-
ExternalStoragesDiskUsageInfoProviderImpl
public ExternalStoragesDiskUsageInfoProviderImpl(@NotNull ProjectManager projectManager, @NotNull ExternalStorageDiskUsageInfoFactory diskUsageInfoFactory, @NotNull ExternalStoragesInfoPersister storagesInfoPersister, @NotNull ExecutorServices executorServices, @NotNull SecurityContextEx securityContext)
-
-
Method Detail
-
getExternalStoragesInfo
@NotNull public List<ArtifactStorageDiskUsageInfo> getExternalStoragesInfo()
- Specified by:
getExternalStoragesInfo
in interfaceExternalStoragesDiskUsageInfoProvider
- Returns:
- list of all registered in the system external storages
-
addStorage
public void addStorage(@NotNull ExternalStorageId storageId, @NotNull ArtifactStorageDiskUsageInfo diskUsageInfo)
Description copied from interface:ExternalStoragesDiskUsageInfoRegistry
Registers new storage with given storage id and disk usage info- Specified by:
addStorage
in interfaceExternalStoragesDiskUsageInfoRegistry
-
removeStorage
public void removeStorage(@NotNull ExternalStorageId storageId)
Description copied from interface:ExternalStoragesDiskUsageInfoRegistry
Removes the storage with the corresponding id- Specified by:
removeStorage
in interfaceExternalStoragesDiskUsageInfoRegistry
-
getStorageIds
@NotNull public Collection<ExternalStorageId> getStorageIds()
- Specified by:
getStorageIds
in interfaceExternalStoragesDiskUsageInfoProvider
- Returns:
- list of registered external storages ids
-
getDiskUsageInfo
@NotNull public Optional<ArtifactStorageDiskUsageInfo> getDiskUsageInfo(@NotNull ExternalStorageId storageId)
- Specified by:
getDiskUsageInfo
in interfaceExternalStoragesDiskUsageInfoProvider
- Returns:
- disk usage info by storage id
-
-