All Superinterfaces:
HealthCenterData, NotificationBroadcaster, NotificationEmitter
All Known Implementing Classes:
CpuDataImpl

public interface CpuData extends HealthCenterData
This class provides access to all the cpu information that Health Center monitored.
  • Field Details

    • PROCESSUSEDATA

      static final String PROCESSUSEDATA
      Used to get only Process Use Data when comparing against NotificationListener.getUserData()
      See Also:
    • SYSTEMUSEDATA

      static final String SYSTEMUSEDATA
      Used to get only System Use Data when comparing against NotificationListener.getUserData()
      See Also:
  • Method Details

    • getProcessUse

      CpuInfo[] getProcessUse()
      Gets the data associated with the process CPU use. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
      Returns:
      an array of CpuInfo objects.
    • getSystemUse

      CpuInfo[] getSystemUse()
      Gets the data associated with the system CPU use. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
      Returns:
      an array of CpuInfo objects.
    • getMinSystemUse

      double getMinSystemUse()
      Gets the minimum percentage value for system CPU use.
      Returns:
      minimum percentage as a double
    • getMaxSystemUse

      double getMaxSystemUse()
      Gets the maximum percentage value for system CPU use.
      Returns:
      maximum percentage as a double
    • getMeanSystemUse

      double getMeanSystemUse()
      Gets the mean percentage value for system CPU use.
      Returns:
      mean percentage as a double
    • getMinProcessUse

      double getMinProcessUse()
      Gets the minimum percentage value for process CPU use.
      Returns:
      minimum percentage as a double
    • getMaxProcessUse

      double getMaxProcessUse()
      Gets the maximum percentage value for process CPU use.
      Returns:
      maximum percentage as a double
    • getMeanProcessUse

      double getMeanProcessUse()
      Gets the mean percentage value for process CPU use.
      Returns:
      mean percentage as a double
    • addCpuListener

      void addCpuListener(CpuEventListener listener)
      Add a listener for notification of when CPU events occur
      Parameters:
      implementation - of the CpuEventListener class