public class ProcessStats extends java.lang.Object implements Streamable, ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
ProcessStats.Cpu |
static class |
ProcessStats.Mem |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
ProcessStats.Cpu |
getCpu() |
long |
getMaxFileDescriptors() |
ProcessStats.Mem |
getMem() |
long |
getOpenFileDescriptors() |
long |
getTimestamp() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static ProcessStats |
readProcessStats(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 long getOpenFileDescriptors()
public long getMaxFileDescriptors()
public ProcessStats.Cpu getCpu()
public ProcessStats.Mem getMem()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static ProcessStats readProcessStats(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