org.elasticsearch.monitor.process
Class ProcessStats.Cpu

java.lang.Object
  extended by org.elasticsearch.monitor.process.ProcessStats.Cpu
All Implemented Interfaces:
Serializable, Streamable
Enclosing class:
ProcessStats

public static class ProcessStats.Cpu
extends Object
implements Streamable, Serializable

See Also:
Serialized Form

Method Summary
 short getPercent()
          Get the Process cpu usage.
 TimeValue getSys()
          Get the Process cpu kernel time.
 TimeValue getTotal()
          Get the Process cpu time (sum of User and Sys).
 TimeValue getUser()
          Get the Process cpu user time.
 short percent()
          Get the Process cpu usage.
static ProcessStats.Cpu readCpu(StreamInput in)
           
 void readFrom(StreamInput in)
           
 TimeValue sys()
          Get the Process cpu kernel time.
 TimeValue total()
          Get the Process cpu time (sum of User and Sys).
 TimeValue user()
          Get the Process cpu user time.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readCpu

public static ProcessStats.Cpu readCpu(StreamInput in)
                                throws IOException
Throws:
IOException

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException

percent

public short percent()
Get the Process cpu usage.

Supported Platforms: All.


getPercent

public short getPercent()
Get the Process cpu usage.

Supported Platforms: All.


sys

public TimeValue sys()
Get the Process cpu kernel time.

Supported Platforms: All.


getSys

public TimeValue getSys()
Get the Process cpu kernel time.

Supported Platforms: All.


user

public TimeValue user()
Get the Process cpu user time.

Supported Platforms: All.


total

public TimeValue total()
Get the Process cpu time (sum of User and Sys).

Supported Platforms: All.


getTotal

public TimeValue getTotal()
Get the Process cpu time (sum of User and Sys).

Supported Platforms: All.


getUser

public TimeValue getUser()
Get the Process cpu user time.

Supported Platforms: All.



Copyright © 2009-2012. All Rights Reserved.