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