Writable@Public @Stable public class FsStatus extends java.lang.Object implements Writable
FileSystem.| Constructor | Description |
|---|---|
FsStatus(long capacity,
long used,
long remaining) |
Construct a FsStatus object, using the specified statistics.
|
| Modifier and Type | Method | 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(java.io.DataInput in) |
Deserialize the fields of this object from
in. |
void |
write(java.io.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(java.io.DataOutput out)
throws java.io.IOException
Writableout.public void readFields(java.io.DataInput in)
throws java.io.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.java.io.IOException - any other problem for readFields.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.