public static class ProcessStats.Cpu extends 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) |
void |
writeTo(StreamOutput out) |
public static ProcessStats.Cpu readCpu(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic short getPercent()
Supported Platforms: All.
public TimeValue getTotal()
Supported Platforms: All.
Copyright © 2009–2016. All rights reserved.