public class OsStats extends Object implements Streamable, ToXContent
| Modifier and Type | Class and Description |
|---|---|
static class |
OsStats.Mem |
static class |
OsStats.Swap |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
Short |
getCpuPercent() |
double |
getLoadAverage() |
OsStats.Mem |
getMem() |
OsStats.Swap |
getSwap() |
long |
getTimestamp() |
void |
readFrom(StreamInput in) |
static OsStats |
readOsStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public long getTimestamp()
public Short getCpuPercent()
public double getLoadAverage()
public OsStats.Mem getMem()
public OsStats.Swap getSwap()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic static OsStats readOsStats(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.