Interface DiskUsageDataReader
-
- All Known Subinterfaces:
CompositeDiskUsageData
,DiskUsageData
- All Known Implementing Classes:
CompositeDiskUsageDataImpl
,DiskUsageDataImpl
public interface DiskUsageDataReader
Gives read-only access for basic disk usage properties of a single entity (e.g. project of build type)- Since:
- 2020.2
- See Also:
DiskUsageStoreProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getArtifactSize()
long[][]
getBuildsData()
long[][]
getBuildsWithHugeLogsIds()
long
getCleanedSize()
String
getEntityId()
Entity id of an entity, characterized by this data.long
getInternalArtifactsSize()
long
getLastUpdatedDate()
long
getLogSize()
long
getNonBuilds()
long
getVersion()
boolean
isUpdating()
-
-
-
Method Detail
-
getEntityId
@NotNull String getEntityId()
Entity id of an entity, characterized by this data. Basically it's a project or build type internal id- Returns:
- id of a characterized entity
-
getArtifactSize
long getArtifactSize()
- Returns:
- artifacts size in bytes
-
getInternalArtifactsSize
long getInternalArtifactsSize()
- Returns:
- internal artifacts size in bytes
-
getLogSize
long getLogSize()
- Returns:
- logs size in bytes
-
getVersion
long getVersion()
- Returns:
- version of this instance. Versions are used for proper disk usage auto-update
-
isUpdating
boolean isUpdating()
- Returns:
- true if this instance is updating now (e.g. its properties recalculated or a new build is being processed)
-
getCleanedSize
long getCleanedSize()
- Returns:
- size of files (including artifacts and logs) in bytes, which where removed by server cleanup
-
getNonBuilds
long getNonBuilds()
- Returns:
- size of files in bytes, which are not recognized as build artifacts or logs
-
getLastUpdatedDate
long getLastUpdatedDate()
- Returns:
- last update time
- See Also:
isUpdating()
-
getBuildsWithHugeLogsIds
@Nullable long[][] getBuildsWithHugeLogsIds()
- Returns:
- fixed number of information about builds, which have atypically huge size of build logs. The list is sorted by build logs size descendally
- See Also:
HugeLogs
-
getBuildsData
@Nullable long[][] getBuildsData()
- Returns:
- information about builds, contributing into disk usage of this entity. The list is sorted by total build artifacts size descendally. Not all builds are saved, but only a fixed number of top builds
-
-