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
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      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.