public class OsStats extends java.lang.Object implements Streamable, 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
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
OsStats.Cpu |
getCpu() |
OsStats.Mem |
getMem() |
OsStats.Swap |
getSwap() |
long |
getTimestamp() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static OsStats |
readOsStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public long getTimestamp()
public OsStats.Cpu getCpu()
public OsStats.Mem getMem()
public OsStats.Swap getSwap()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static OsStats readOsStats(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException