public static class FsInfo.Path extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
FsInfo.Path() |
FsInfo.Path(String path,
String mount,
long total,
long free,
long available) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(FsInfo.Path path) |
ByteSizeValue |
getAvailable() |
ByteSizeValue |
getFree() |
String |
getMount() |
String |
getPath() |
Boolean |
getSpins() |
ByteSizeValue |
getTotal() |
String |
getType() |
void |
readFrom(StreamInput in) |
static FsInfo.Path |
readInfoFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public static FsInfo.Path readInfoFrom(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 String getPath()
public String getMount()
public String getType()
public ByteSizeValue getTotal()
public ByteSizeValue getFree()
public ByteSizeValue getAvailable()
public Boolean getSpins()
public void add(FsInfo.Path path)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.