Class ProcessStats.Cpu

org.elasticsearch.monitor.process.ProcessStats.Cpu
All Implemented Interfaces:
Writeable
Enclosing class:
ProcessStats

public static class ProcessStats.Cpu extends 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)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    short
    Get the Process cpu usage.
    org.elasticsearch.core.TimeValue
    Get the Process cpu time (sum of User and Sys).
    void
    Write this into the StreamOutput.

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • Cpu

      public Cpu(short percent, long total)
    • Cpu

      public Cpu(StreamInput in) throws
      Throws:
  • Method Details

    • writeTo

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