public static class ProcessStats.Cpu extends java.lang.Object implements Streamable
Modifier and Type | Method and Description |
---|---|
short |
getPercent()
Get the Process cpu usage.
|
TimeValue |
getTotal()
Get the Process cpu time (sum of User and Sys).
|
static ProcessStats.Cpu |
readCpu(StreamInput in) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public static ProcessStats.Cpu readCpu(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
public short getPercent()
Supported Platforms: All.
public TimeValue getTotal()
Supported Platforms: All.