@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)
public long getCapacity()
public long getUsed()
public long getRemaining()
public void write(DataOutput out) throws IOException
Writable
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.IOException
Copyright © 2019 Apache Software Foundation. All rights reserved.