Interface ProcessCpuTimeMonitorMBean

All Superinterfaces:
SelfEmailingMBean

public interface ProcessCpuTimeMonitorMBean extends SelfEmailingMBean
Monitors (average) percentage CPU used by process and CPU times accumulated by each thread, over a given time interval and since a baseline time.

Supported API: true

Extendable: true
  • Field Details

    • PROCESS_PERCENT_CPU_TE_INITIAL_NOTIF_TYPE

      static final String PROCESS_PERCENT_CPU_TE_INITIAL_NOTIF_TYPE
      Type of notification produced when ProcessPercentCpuThreshold is initially exceeded

      Supported API: true
    • PROCESS_PERCENT_CPU_TE_STILL_NOTIF_TYPE

      static final String PROCESS_PERCENT_CPU_TE_STILL_NOTIF_TYPE
      Type of notification produced when ProcessPercentCpuThreshold is still exceeded

      Supported API: true
    • PROCESS_PERCENT_CPU_TE_NO_LONGER_NOTIF_TYPE

      static final String PROCESS_PERCENT_CPU_TE_NO_LONGER_NOTIF_TYPE
      Type of notification produced when ProcessPercentCpuThreshold is no longer exceeded

      Supported API: true
  • Method Details

    • getAverageProcessPercentCpu

      double getAverageProcessPercentCpu()
      Average percentage of CPU used by process since its start

      Supported API: true
    • getProcessPercentCpuThreshold

      double getProcessPercentCpuThreshold()
      Threshold percentage CPU used by process

      Supported API: true
    • setProcessPercentCpuThreshold

      void setProcessPercentCpuThreshold(double processPercentCpuThreshold)
      Threshold percentage CPU used by process

      Supported API: true
    • getRecentIntervalSeconds

      int getRecentIntervalSeconds()
      Duration (in seconds) of time interval over which CPU usage is averaged

      Supported API: true
    • setRecentIntervalSeconds

      void setRecentIntervalSeconds(int recentIntervalSeconds)
      Duration (in seconds) of time interval over which CPU usage is averaged

      Supported API: true
    • getRecentCpuData

      CompositeData getRecentCpuData() throws OpenDataException
      Data on CPU usage during recent time interval

      Supported API: true
      Throws:
      OpenDataException
    • getBaselineCpuData

      CompositeData getBaselineCpuData() throws OpenDataException
      Data on CPU usage during time interval since baseline CPU time statistics were established (by application startup or the resetBaselineStatistics() operation whichever was more recent)

      Supported API: true
      Throws:
      OpenDataException
    • resetBaselineStatistics

      @MBeanOperationImpact(1) void resetBaselineStatistics()
      Resets CPU time baseline statistics

      Supported API: true