com.ibm.java.diagnostics.healthcenter.api.io

Interface IOData

  • All Superinterfaces:
    HealthCenterData, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter


    public interface IOData
    extends HealthCenterData
    This class provides access to all the file input/output information that Health Center has monitored.
    • Field Detail

      • FILEOPENEVENTSDATA

        static final java.lang.String FILEOPENEVENTSDATA
        Used to get only File Open Events Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
      • FILECLOSEEVENTSDATA

        static final java.lang.String FILECLOSEEVENTSDATA
        Used to get only File Close Events Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
      • OPENFILECOUNTDATA

        static final java.lang.String OPENFILECOUNTDATA
        Used to get only Open File Count Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
    • Method Detail

      • 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

        void addFileListener(FileEventListener listener)
        Add a listener for notification of when file events occur
        Parameters:
        implementation - of the FileEventListener class
      • removeFileListener

        void removeFileListener(FileEventListener listener)
        Remove one of registered listeners.
        Parameters:
        implementation - of the FileEventListener class
© Copyright 2012, 2016 IBM Corporation.