Package alluxio.wire

Class Capacity


  • @NotThreadSafe
    public class Capacity
    extends java.lang.Object
    Class that represents the available, free, and total capacity.
    • Constructor Detail

      • Capacity

        public Capacity()
        Creates a new instance of Capacity.
    • Method Detail

      • getTotal

        public long getTotal()
        Returns:
        the total capacity
      • getUsed

        public long getUsed()
        Returns:
        the used capacity
      • setTotal

        public Capacity setTotal​(long total)
        Parameters:
        total - the total capacity to use
        Returns:
        the capacity
      • setUsed

        public Capacity setUsed​(long used)
        Parameters:
        used - the used capacity to use
        Returns:
        the capacity
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object