Interface ProfilingData
- All Superinterfaces:
HealthCenterData,NotificationBroadcaster,NotificationEmitter
- All Known Implementing Classes:
ProfilingDataImpl
This class represents all the profiling data that was processed by Health
Center. This information includes, for example, which methods are run most
often, and in which order.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringUsed to get only Profiling Data when comparing againstNotificationListener.getUserData() -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProfilingListener(ProfilingEventListener listener) Add a listener for notification of when a profiling event occursReturns all the method profiling data processed by Health Center.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
-
PROFILEDATA
Used to get only Profiling Data when comparing againstNotificationListener.getUserData()- See Also:
-
-
Method Details
-
getProfilingEvents
MethodProfileData[] getProfilingEvents()Returns all the method profiling data processed by Health Center. 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 profiling events.
-
addProfilingListener
Add a listener for notification of when a profiling event occurs- Parameters:
implementation- of the ProfilingEventListener class
-
removeProfilingListener
Remove one of registered listeners.- Parameters:
implementation- of the ProfilingEventListener class
-