public static class FsInfo.Path extends java.lang.Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
Path() |
Path(java.lang.String path,
java.lang.String mount,
long total,
long free,
long available) |
Modifier and Type | Method and Description |
---|---|
void |
add(FsInfo.Path path) |
ByteSizeValue |
getAvailable() |
ByteSizeValue |
getFree() |
java.lang.String |
getMount() |
java.lang.String |
getPath() |
java.lang.Boolean |
getSpins() |
ByteSizeValue |
getTotal() |
java.lang.String |
getType() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static FsInfo.Path |
readInfoFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public Path()
public Path(java.lang.String path, @Nullable java.lang.String mount, long total, long free, long available)
public static FsInfo.Path readInfoFrom(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public java.lang.String getPath()
public java.lang.String getMount()
public java.lang.String getType()
public ByteSizeValue getTotal()
public ByteSizeValue getFree()
public ByteSizeValue getAvailable()
public java.lang.Boolean getSpins()
public void add(FsInfo.Path path)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException