|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.fs.FsStatus
@InterfaceAudience.Public @InterfaceStability.Stable public class FsStatus
This class is used to represent the capacity, free and used space on a
FileSystem
.
Constructor Summary | |
---|---|
FsStatus(long capacity,
long used,
long remaining)
Construct a FsStatus object, using the specified statistics |
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FsStatus(long capacity, long used, long remaining)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |