Interface ClassesData
- All Superinterfaces:
HealthCenterData,NotificationBroadcaster,NotificationEmitter
- All Known Implementing Classes:
ClassesDataImpl
This class provides access to all the classes information that Health Center
monitored.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassesListener(ClassesEventListener listener) Add a listener for notification of when a class load event occursvoidAdd a listener for notification of when a class histogram event occursGets the list of loaded classes.Gets the class histogram data.voidremoveClassesListener(ClassesEventListener listener) Remove one of registered listeners.voidRemove 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
-
LOADEDCLASSESDATA
Used to get only Loaded Classes Data when comparing againstNotificationListener.getUserData()- See Also:
-
CLASSHISTOGRAMDATA
Used to get only Class Histogram Data when comparing againstNotificationListener.getUserData()- See Also:
-
-
Method Details
-
getClassesLoaded
ClassLoadData[] getClassesLoaded()Gets the list of loaded classes. 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:
- a ClassLoadData array of loaded classes.
-
getClassHistogram
ClassHistogramData[] getClassHistogram()Gets the class histogram data.- Returns:
- an array of ClassHistogramData objects.
-
addClassesListener
Add a listener for notification of when a class load event occurs- Parameters:
implementation- of the ClassesEventListener class
-
removeClassesListener
Remove one of registered listeners.- Parameters:
implementation- of the ClassesEventListener class
-
addClassHistogramListener
Add a listener for notification of when a class histogram event occurs- Parameters:
implementation- of the ClassHistogramEventListener class
-
removeClassHistogramListener
Remove one of registered listeners.- Parameters:
implementation- of the ClassHistogramEventListener class
-