public class FsInfo extends java.lang.Object implements java.lang.Iterable<FsInfo.Path>, Writeable, ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
FsInfo.DeviceStats |
static class |
FsInfo.IoStats |
static class |
FsInfo.Path |
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
FsInfo(long timestamp,
FsInfo.IoStats ioStats,
FsInfo.Path[] paths) |
FsInfo(StreamInput in)
Read from a stream.
|
Modifier and Type | Method and Description |
---|---|
FsInfo.IoStats |
getIoStats() |
long |
getTimestamp() |
FsInfo.Path |
getTotal() |
java.util.Iterator<FsInfo.Path> |
iterator() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public FsInfo(long timestamp, FsInfo.IoStats ioStats, FsInfo.Path[] paths)
public FsInfo(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public FsInfo.Path getTotal()
public long getTimestamp()
public FsInfo.IoStats getIoStats()
public java.util.Iterator<FsInfo.Path> iterator()
iterator
in interface java.lang.Iterable<FsInfo.Path>
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException