public static class FsInfo.Path extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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
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 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 ToXContent
IOException
Copyright © 2009–2017. All rights reserved.