Class ProcessStats.Cpu

  • All Implemented Interfaces:
    Writeable
    Enclosing class:
    ProcessStats

    public static class ProcessStats.Cpu
    extends java.lang.Object
    implements Writeable
    • Constructor Summary

      Constructors 
      Constructor Description
      Cpu​(short percent, long total)  
      Cpu​(StreamInput in)  
    • Method Summary

      Modifier and Type Method Description
      short getPercent()
      Get the Process cpu usage.
      TimeValue getTotal()
      Get the Process cpu time (sum of User and Sys).
      void writeTo​(StreamOutput out)
      Write this into the StreamOutput.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Cpu

        public Cpu​(short percent,
                   long total)
      • Cpu

        public Cpu​(StreamInput in)
            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • 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.