public class FsInfo extends Object implements Iterable<FsInfo.Path>, Streamable, ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
FsInfo.Path |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
FsInfo(long timestamp,
FsInfo.Path[] paths) |
Modifier and Type | Method and Description |
---|---|
long |
getTimestamp() |
FsInfo.Path |
getTotal() |
Iterator<FsInfo.Path> |
iterator() |
void |
readFrom(StreamInput in) |
static FsInfo |
readFsInfo(StreamInput in) |
FsInfo.Path |
total() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public FsInfo(long timestamp, FsInfo.Path[] paths)
public FsInfo.Path getTotal()
public FsInfo.Path total()
public long getTimestamp()
public Iterator<FsInfo.Path> iterator()
iterator
in interface Iterable<FsInfo.Path>
public static FsInfo readFsInfo(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–2016. All rights reserved.