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