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.Params
EMPTY_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 ToXContent
IOException
public static OsStats readOsStats(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.