Class ProcessStats.Cpu
- java.lang.Object
-
- org.elasticsearch.monitor.process.ProcessStats.Cpu
-
- All Implemented Interfaces:
Writeable
- Enclosing class:
- ProcessStats
public static class ProcessStats.Cpu extends Object implements Writeable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description Cpu(short percent, long total)Cpu(StreamInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetPercent()Get the Process cpu usage.TimeValuegetTotal()Get the Process cpu time (sum of User and Sys).voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
-
-
Constructor Detail
-
Cpu
public Cpu(short percent, long total)
-
Cpu
public Cpu(StreamInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getPercent
public short getPercent()
Get the Process cpu usage.Supported Platforms: All.
-
getTotal
public TimeValue getTotal()
Get the Process cpu time (sum of User and Sys).Supported Platforms: All.
-
-