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