public class OsStats extends Object implements Streamable, Serializable, ToXContent
| Modifier and Type | Class and Description |
|---|---|
static class |
OsStats.Cpu |
static class |
OsStats.Mem |
static class |
OsStats.Swap |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static double[] |
EMPTY_LOAD |
EMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
OsStats.Cpu |
cpu() |
OsStats.Cpu |
getCpu() |
double[] |
getLoadAverage() |
OsStats.Mem |
getMem() |
OsStats.Swap |
getSwap() |
long |
getTimestamp() |
TimeValue |
getUptime() |
double[] |
loadAverage() |
OsStats.Mem |
mem() |
void |
readFrom(StreamInput in) |
static OsStats |
readOsStats(StreamInput in) |
OsStats.Swap |
swap() |
long |
timestamp() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
TimeValue |
uptime() |
void |
writeTo(StreamOutput out) |
public long timestamp()
public long getTimestamp()
public double[] loadAverage()
public double[] getLoadAverage()
public TimeValue uptime()
public TimeValue getUptime()
public OsStats.Cpu cpu()
public OsStats.Cpu getCpu()
public OsStats.Mem mem()
public OsStats.Mem getMem()
public OsStats.Swap swap()
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–2016. All rights reserved.