Interface CpuData
- All Superinterfaces:
HealthCenterData,NotificationBroadcaster,NotificationEmitter
- All Known Implementing Classes:
CpuDataImpl
This class provides access to all the cpu information that
Health Center monitored.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCpuListener(CpuEventListener listener) Add a listener for notification of when CPU events occurdoubleGets the maximum percentage value for process CPU use.doubleGets the maximum percentage value for system CPU use.doubleGets the mean percentage value for process CPU use.doubleGets the mean percentage value for system CPU use.doubleGets the minimum percentage value for process CPU use.doubleGets the minimum percentage value for system CPU use.CpuInfo[]Gets the data associated with the process CPU use.CpuInfo[]Gets the data associated with the system CPU use.Methods inherited from interface com.ibm.java.diagnostics.healthcenter.api.HealthCenterData
getAllRecommendations, getCriticalRecommendations, getHealthyRecommendations, getInformationalRecommendations, getWarningRecommendations, startNotifying, startNotifyingMethods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListenerMethods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
Field Details
-
PROCESSUSEDATA
Used to get only Process Use Data when comparing againstNotificationListener.getUserData()- See Also:
-
SYSTEMUSEDATA
Used to get only System Use Data when comparing againstNotificationListener.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
Add a listener for notification of when CPU events occur- Parameters:
implementation- of the CpuEventListener class
-