public static class FsInfo.Path extends java.lang.Object implements Writeable, ToXContentObject
Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
Path() |
Path(StreamInput in)
Read from a stream.
|
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() |
ByteSizeValue |
getTotal() |
java.lang.String |
getType() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic Path()
public Path(java.lang.String path,
@Nullable
java.lang.String mount,
long total,
long free,
long available)
public Path(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic java.lang.String getPath()
public java.lang.String getMount()
public java.lang.String getType()
public ByteSizeValue getTotal()
public ByteSizeValue getFree()
public ByteSizeValue getAvailable()
public void add(FsInfo.Path path)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException