public class DiskUsage extends java.lang.Object implements ToXContent, Writeable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>EMPTY_PARAMS| Constructor and Description |
|---|
DiskUsage(StreamInput in) |
DiskUsage(java.lang.String nodeId,
java.lang.String nodeName,
java.lang.String path,
long totalBytes,
long freeBytes)
Create a new DiskUsage, if
totalBytes is 0, getFreeDiskAsPercentage()
will always return 100.0% free |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
long |
getFreeBytes() |
double |
getFreeDiskAsPercentage() |
java.lang.String |
getNodeId() |
java.lang.String |
getNodeName() |
java.lang.String |
getPath() |
long |
getTotalBytes() |
long |
getUsedBytes() |
double |
getUsedDiskAsPercentage() |
int |
hashCode() |
XContentBuilder |
toShortXContent(XContentBuilder builder,
ToXContent.Params params) |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentpublic DiskUsage(java.lang.String nodeId,
java.lang.String nodeName,
java.lang.String path,
long totalBytes,
long freeBytes)
totalBytes is 0, getFreeDiskAsPercentage()
will always return 100.0% freepublic DiskUsage(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic XContentBuilder toShortXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic java.lang.String getNodeId()
public java.lang.String getNodeName()
public java.lang.String getPath()
public double getFreeDiskAsPercentage()
public double getUsedDiskAsPercentage()
public long getFreeBytes()
public long getTotalBytes()
public long getUsedBytes()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object