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.ParamsEMPTY_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
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.