Package com.atlassian.bamboo.storage
Class DiskUsageManagerImpl
- java.lang.Object
-
- com.atlassian.bamboo.storage.DiskUsageManagerImpl
-
- All Implemented Interfaces:
DiskUsageManager
public class DiskUsageManagerImpl extends Object implements DiskUsageManager
-
-
Constructor Summary
Constructors Constructor Description DiskUsageManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Long>findUsedStorage()Retrieve all artifact sizes for each artifact handler type.@Nullable LongfindUsedStorageByArtifactHandler(String artifactHandlerPluginKey)Retrieve the all artifacts size for a given artifact handler.voidinvalidateDiskUsageByArtifacts()Invalidates disk usage values.
-
-
-
Method Detail
-
findUsedStorageByArtifactHandler
@Nullable public @Nullable Long findUsedStorageByArtifactHandler(String artifactHandlerPluginKey)
Description copied from interface:DiskUsageManagerRetrieve the all artifacts size for a given artifact handler.- Specified by:
findUsedStorageByArtifactHandlerin interfaceDiskUsageManager- 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.
-
findUsedStorage
public Map<String,Long> findUsedStorage()
Description copied from interface:DiskUsageManagerRetrieve all artifact sizes for each artifact handler type.- Specified by:
findUsedStoragein interfaceDiskUsageManager- Returns:
- the map of all artifact sizes grouped by artifactHandlerPluginKey.
-
invalidateDiskUsageByArtifacts
public void invalidateDiskUsageByArtifacts()
Description copied from interface:DiskUsageManagerInvalidates disk usage values. Next timeDiskUsageManager.findUsedStorageByArtifactHandler(String)called values will be refreshed- Specified by:
invalidateDiskUsageByArtifactsin interfaceDiskUsageManager
-
-