Package com.atlassian.bamboo.storage
Interface DiskUsageManager
-
- All Known Implementing Classes:
DiskUsageManagerImpl
@Internal public interface DiskUsageManager
Manages the usage forArtifactHandler
s- Since:
- 5.9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Long>
findUsedStorage()
Retrieve all artifact sizes for each artifact handler type.@Nullable Long
findUsedStorageByArtifactHandler(String artifactHandlerPluginKey)
Retrieve the all artifacts size for a given artifact handler.void
invalidateDiskUsageByArtifacts()
Invalidates disk usage values.
-
-
-
Method Detail
-
invalidateDiskUsageByArtifacts
void invalidateDiskUsageByArtifacts()
Invalidates disk usage values. Next timefindUsedStorageByArtifactHandler(String)
called values will be refreshed
-
findUsedStorageByArtifactHandler
@Nullable @Nullable Long findUsedStorageByArtifactHandler(String artifactHandlerPluginKey)
Retrieve the all artifacts size for a given artifact handler.- Parameters:
artifactHandlerPluginKey
- the plugin key of the artifact handler for which to retrieve the usage for.- Returns:
- the size of all artifacts which were processed by given artifact handler in bytes. If none of artifact was saved with given artifact handler this will return null.
-
-