Package wt.jmx.core.mbeans
Interface ProcessCpuTimeMonitorMBean
- All Superinterfaces:
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
Supported API: true
Extendable: true
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringType of notification produced when ProcessPercentCpuThreshold is initially exceeded
Supported API: truestatic final StringType of notification produced when ProcessPercentCpuThreshold is no longer exceeded
Supported API: truestatic final StringType of notification produced when ProcessPercentCpuThreshold is still exceeded
Supported API: true -
Method Summary
Modifier and TypeMethodDescriptiondoubleAverage percentage of CPU used by process since its start
Supported API: trueData 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: truedoubleThreshold percentage CPU used by process
Supported API: trueData on CPU usage during recent time interval
Supported API: trueintDuration (in seconds) of time interval over which CPU usage is averaged
Supported API: truevoidResets CPU time baseline statistics
Supported API: truevoidsetProcessPercentCpuThreshold(double processPercentCpuThreshold) Threshold percentage CPU used by process
Supported API: truevoidsetRecentIntervalSeconds(int recentIntervalSeconds) Duration (in seconds) of time interval over which CPU usage is averaged
Supported API: trueMethods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Field Details
-
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
Type of notification produced when ProcessPercentCpuThreshold is still exceeded
Supported API: true -
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
Data on CPU usage during recent time interval
Supported API: true- Throws:
OpenDataException
-
getBaselineCpuData
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
Resets CPU time baseline statistics
Supported API: true
-