public static class ProcessStats.Cpu extends java.lang.Object implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Constructor and Description |
---|
Cpu(short percent,
long total) |
Cpu(StreamInput in) |
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).
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public Cpu(short percent, long total)
public Cpu(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public short getPercent()
Supported Platforms: All.
public TimeValue getTotal()
Supported Platforms: All.