Interface CompositeDiskUsageData

    • Method Detail

      • getDiskUsageByStorageId

        @NotNull
        Optional<DiskUsageData> getDiskUsageByStorageId​(@NotNull
                                                        String storageId)
        Parameters:
        storageId -
        Returns:
        DiskUsageData for a particular storage with given id
      • getDiskUsageData

        @NotNull
        Map<String,​DiskUsageData> getDiskUsageData()
        Returns:
        mapping from all storage ids, which info is stored in the instance, to the particular data
      • add

        @NotNull
        CompositeDiskUsageData add​(@NotNull
                                   CompositeDiskUsageData other,
                                   boolean mergePerBuildData)
        Summarizes two composited disk usage data instances
        Parameters:
        other -
        mergePerBuildData - true if information about saved builds should be merged as well
        Returns:
        merged instance
      • add

        @NotNull
        CompositeDiskUsageData add​(@NotNull
                                   DiskUsageData other,
                                   boolean mergePerBuildData,
                                   @NotNull
                                   String storageId)
        Adds disk usage data to the storage with a given id
        Parameters:
        other - data to add
        mergePerBuildData - true if information about saved builds should be merged as well
        storageId - target storage id
        Returns:
        resulted instance
      • subtract

        @NotNull
        CompositeDiskUsageData subtract​(@NotNull
                                        DiskUsageData other,
                                        @NotNull
                                        String storageId)
        Excludes disk usage data from the storage with a given id
        Parameters:
        other - data to exclude
        storageId - target storage id
        Returns:
        resulted instance
      • containsData

        boolean containsData()
        Returns:
        true if this instance contains any data
      • cleanEmptyStorages

        @NotNull
        CompositeDiskUsageData cleanEmptyStorages()
        Cleans empty data, saved in this storage
        Returns:
        resulted instance