Class Drive

    • Field Detail

      • size

        protected final long size
      • claimType

        protected final ClaimType claimType
      • readers

        protected final Set<String> readers
    • Method Detail

      • getClaimType

        @Nullable
        public ClaimType getClaimType()
        Returns:
        either 'exclusive' (the default) or 'shared' to allow multiple servers to access a drive simultaneously
      • getReaders

        public Set<String> getReaders()
        Returns:
        list of users allowed to read from a drive or 'ffffffff-ffff-ffff-ffff-ffffffffffff' for all users
      • getSize

        public long getSize()
        Returns:
        size of drive in bytes
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Item
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Item