public class FsStats extends Object implements Iterable<FsStats.Info>, Streamable, ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
FsStats.Info |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
FsStats(long timestamp,
FsStats.Info[] infos) |
Modifier and Type | Method and Description |
---|---|
long |
getTimestamp() |
FsStats.Info |
getTotal() |
Iterator<FsStats.Info> |
iterator() |
void |
readFrom(StreamInput in) |
static FsStats |
readFsStats(StreamInput in) |
FsStats.Info |
total() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public FsStats(long timestamp, FsStats.Info[] infos)
public FsStats.Info getTotal()
public FsStats.Info total()
public long getTimestamp()
public Iterator<FsStats.Info> iterator()
iterator
in interface Iterable<FsStats.Info>
public static FsStats readFsStats(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2015. All rights reserved.