Interface IOData
- All Superinterfaces:
HealthCenterData,NotificationBroadcaster,NotificationEmitter
- All Known Implementing Classes:
IODataImpl
This class provides access to all the file input/output information that
Health Center has monitored.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringUsed to get only File Close Events Data when comparing againstNotificationListener.getUserData()static final StringUsed to get only File Open Events Data when comparing againstNotificationListener.getUserData()static final StringUsed to get only Open File Count Data when comparing againstNotificationListener.getUserData() -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFileListener(FileEventListener listener) Add a listener for notification of when file events occurFileData[]Gets the close file events.FileData[]Gets the open file events.Gets the number of open files over time.voidremoveFileListener(FileEventListener 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
-
FILEOPENEVENTSDATA
Used to get only File Open Events Data when comparing againstNotificationListener.getUserData()- See Also:
-
FILECLOSEEVENTSDATA
Used to get only File Close Events Data when comparing againstNotificationListener.getUserData()- See Also:
-
OPENFILECOUNTDATA
Used to get only Open File Count Data when comparing againstNotificationListener.getUserData()- See Also:
-
-
Method Details
-
getFileOpenEvents
FileData[] getFileOpenEvents()Gets the open file events. 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 FileData objects, representing open file events.
-
getFileCloseEvents
FileData[] getFileCloseEvents()Gets the close file events. 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 FileData objects, representing close file events.
-
getOpenFileCount
CountData[] getOpenFileCount()Gets the number of open files over time. 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 CountData objects, for open files.
-
addFileListener
Add a listener for notification of when file events occur- Parameters:
implementation- of the FileEventListener class
-
removeFileListener
Remove one of registered listeners.- Parameters:
implementation- of the FileEventListener class
-