java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.cpu.impl.CpuEventObject
All Implemented Interfaces:
BaseEvent, CpuEvent

public class CpuEventObject extends Object implements CpuEvent
  • Constructor Details

    • CpuEventObject

      public CpuEventObject(long eventTime, double systemCPU, double processCPU)
  • Method Details

    • getEventTime

      public long getEventTime()
      Specified by:
      getEventTime in interface BaseEvent
      Returns:
      the time the event took place in milliseconds since epoch
    • getSystemUse

      public double getSystemUse()
      Specified by:
      getSystemUse in interface CpuEvent
      Returns:
      percentage of the overall CPU system use (-1 if not available)
    • getProcessUse

      public double getProcessUse()
      Specified by:
      getProcessUse in interface CpuEvent
      Returns:
      percentage of the overall processor use (-1 if not available)