Interface Quota


public interface Quota
If your server implementation needs to support quotas, this interface must be implemented on Folder items (items that implement Folder interfaces). Optionally this interface can be implemented by other items, depending on your requirements.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Value in bytes representing the amount of additional disk space beyond the current allocation that can be allocated to the folder (or other item) before further allocations will be refused.
    long
    Value in bytes representing the amount of space used by this folder/file and possibly a number of other similar folders/files, where the set of "similar" meets at least the criterion that allocating space to any folder/file in the set will count against the getAvailableBytes().
  • Method Details

    • getAvailableBytes

      long getAvailableBytes()
      Value in bytes representing the amount of additional disk space beyond the current allocation that can be allocated to the folder (or other item) before further allocations will be refused.
    • getUsedBytes

      long getUsedBytes()
      Value in bytes representing the amount of space used by this folder/file and possibly a number of other similar folders/files, where the set of "similar" meets at least the criterion that allocating space to any folder/file in the set will count against the getAvailableBytes(). It MUST include the total count including usage derived from sub-items if appropriate. It SHOULD include metadata storage size if metadata storage is counted against the getAvailableBytes()
      Returns:
      Bytes occupied by folder/file.