Writeable
, ToXContent
, ToXContentObject
public static class FsInfo.Path extends java.lang.Object implements Writeable, ToXContentObject
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY_PARAMS
Constructor | Description |
---|---|
Path() |
|
Path(java.lang.String path,
java.lang.String mount,
long total,
long free,
long available) |
|
Path(StreamInput in) |
Read from a stream.
|
Modifier and Type | Method | 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, wait
isFragment
public 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.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
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 void add(FsInfo.Path path)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException