Interface StorageUsage

All Known Subinterfaces:
AssetStore, RemoteAssetStore, WorkingFileRepository, Workspace
All Known Implementing Classes:
AbstractFileSystemAssetStore, AwsAbstractArchive, AwsS3AssetStore, OsgiFileSystemAssetStore, WorkingFileRepositoryImpl, WorkingFileRepositoryRestEndpoint, WorkspaceImpl

public interface StorageUsage
Provides access to storage usage information
  • Method Details

    • getTotalSpace

      Optional<Long> getTotalSpace()
      Gets the total space of storage in Bytes
      Returns:
      Number of all bytes in storage
    • getUsableSpace

      Optional<Long> getUsableSpace()
      Gets the available space of storage in Bytes This is free storage that is not reserved
      Returns:
      Number of available bytes in storage
    • getUsedSpace

      Optional<Long> getUsedSpace()
      Gets the used space of storage in Bytes
      Returns:
      Number of used bytes in storage