Class ExternalStorageDiskUsageInfoFactoryImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.statistics.diskusage.impl.ExternalStorageDiskUsageInfoFactoryImpl
-
- All Implemented Interfaces:
ExternalStorageDiskUsageInfoFactory
public class ExternalStorageDiskUsageInfoFactoryImpl extends Object implements ExternalStorageDiskUsageInfoFactory
-
-
Constructor Summary
Constructors Constructor Description ExternalStorageDiskUsageInfoFactoryImpl(ArtifactStorageTypeRegistry storageTypeRegistry, ServerArtifactHelper artifactHelper, ExternalStorageIdAccessor storageIdAccessor, ProjectManager projectManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArtifactStorageDiskUsageInfocreateExternalStorageInfo(SProject project, String name, String type, ExternalStorageId storageId)Creates disk usage info instance from given parametersPair<ExternalStorageId,ArtifactStorageDiskUsageInfo>createInfoFromProjectFeature(SProjectFeatureDescriptor feature, SProject project)Creates storage info instance from project feature, defining some external storage
-
-
-
Constructor Detail
-
ExternalStorageDiskUsageInfoFactoryImpl
public ExternalStorageDiskUsageInfoFactoryImpl(@NotNull ArtifactStorageTypeRegistry storageTypeRegistry, @NotNull ServerArtifactHelper artifactHelper, @NotNull ExternalStorageIdAccessor storageIdAccessor, @NotNull ProjectManager projectManager)
-
-
Method Detail
-
createInfoFromProjectFeature
@NotNull public Pair<ExternalStorageId,ArtifactStorageDiskUsageInfo> createInfoFromProjectFeature(@NotNull SProjectFeatureDescriptor feature, @NotNull SProject project)
Description copied from interface:ExternalStorageDiskUsageInfoFactoryCreates storage info instance from project feature, defining some external storage- Specified by:
createInfoFromProjectFeaturein interfaceExternalStorageDiskUsageInfoFactoryproject- project, where this external storage was configured- Returns:
- resulted storage id and disk usage info
-
createExternalStorageInfo
@NotNull public ArtifactStorageDiskUsageInfo createExternalStorageInfo(@NotNull SProject project, @Nullable String name, @Nullable String type, @NotNull ExternalStorageId storageId)
Description copied from interface:ExternalStorageDiskUsageInfoFactoryCreates disk usage info instance from given parameters- Specified by:
createExternalStorageInfoin interfaceExternalStorageDiskUsageInfoFactory- Parameters:
project- project, where this external storage was configured- Returns:
- resulte disk usage info
-
-