Interface LockingData
- All Superinterfaces:
HealthCenterData,NotificationBroadcaster,NotificationEmitter
- All Known Implementing Classes:
LockingDataImpl
This class contains general information about thread locks, or monitors.
Health Center can retrieve information about two kinds of monitors: Java and
System.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLockingListener(LockingEventListener listener) Add a listener for notification of when a locking event occursGets an array of MonitorData objects representing locks taken by the application that is being monitored.Gets an array of MonitorData objects representing locks taken by the Java runtime environment.voidremoveLockingListener(LockingEventListener listener) Remove one of registered listeners.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
-
JAVAMONITORDATA
Used to get only Java Monitors Data when comparing againstNotificationListener.getUserData()- See Also:
-
SYSTEMMONITORDATA
Used to get only System Monitors Data when comparing againstNotificationListener.getUserData()- See Also:
-
-
Method Details
-
getInflatedJavaMonitors
MonitorData[] getInflatedJavaMonitors()Gets an array of MonitorData objects representing locks taken by the application that is being monitored. 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 MonitorData objects.
-
getInflatedSystemMonitors
MonitorData[] getInflatedSystemMonitors()Gets an array of MonitorData objects representing locks taken by the Java runtime environment. 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 MonitorData objects.
-
addLockingListener
Add a listener for notification of when a locking event occurs- Parameters:
implementation- of the LockingEventListener class
-
removeLockingListener
Remove one of registered listeners.- Parameters:
implementation- of the LockingEventListener class
-