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 Summary

    Modifier and Type
    Method
    Description
    Gets the total space of storage in Bytes
    Gets the available space of storage in Bytes This is free storage that is not reserved
    Gets the used space of storage in Bytes
  • Method Details

    • getTotalSpace

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

      Option<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

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