Package alluxio.wire
Class Capacity
- java.lang.Object
-
- alluxio.wire.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 ofCapacity
.
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-