@InterfaceAudience.Public @InterfaceStability.Stable public class FsStatus extends Object implements Writable
FileSystem.| Constructor and Description |
|---|
FsStatus(long capacity,
long used,
long remaining)
Construct a FsStatus object, using the specified statistics.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCapacity()
Return the capacity in bytes of the file system.
|
long |
getRemaining()
Return the number of remaining bytes on the file system.
|
long |
getUsed()
Return the number of bytes used on the file system.
|
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
public FsStatus(long capacity,
long used,
long remaining)
capacity - capacity.used - used.remaining - remaining.public long getCapacity()
public long getUsed()
public long getRemaining()
public void write(DataOutput out) throws IOException
Writableout.write in interface Writableout - DataOuput to serialize this object into.IOException - any other problem for write.public void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.IOException - any other problem for readFields.Copyright © 2023 Apache Software Foundation. All rights reserved.