All Implemented Interfaces:
HealthCenterData, IOData, NotificationBroadcaster, NotificationEmitter

public class IODataImpl extends HealthCenterDataImpl implements IOData
  • Constructor Details

    • IODataImpl

      public IODataImpl(com.ibm.java.diagnostics.common.datamodel.data.Data data)
  • Method Details

    • getFileCloseEvents

      public FileData[] getFileCloseEvents()
      Description copied from interface: IOData
      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
      Specified by:
      getFileCloseEvents in interface IOData
      Returns:
      an array of FileData objects, representing close file events.
    • getFileOpenEvents

      public FileData[] getFileOpenEvents()
      Description copied from interface: IOData
      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
      Specified by:
      getFileOpenEvents in interface IOData
      Returns:
      an array of FileData objects, representing open file events.
    • getOpenFileCount

      public CountData[] getOpenFileCount()
      Description copied from interface: IOData
      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
      Specified by:
      getOpenFileCount in interface IOData
      Returns:
      an array of CountData objects, for open files.
    • getRecommendationLabel

      protected String getRecommendationLabel()
      Specified by:
      getRecommendationLabel in class HealthCenterDataImpl
    • getSubsystemLabel

      protected String getSubsystemLabel()
      Specified by:
      getSubsystemLabel in class HealthCenterDataImpl
    • startNotifying

      public void startNotifying()
      Description copied from interface: HealthCenterData
      Starts a thread which checks for changes in the data every 2000 milliseconds and sends notifications if an update has occurred. To handle these notifications, a NotificationListener needs to be added to the object the thread is being started from.
      Specified by:
      startNotifying in interface HealthCenterData
    • startNotifying

      public void startNotifying(long delay)
      Description copied from interface: HealthCenterData
      Starts a thread which checks for changes in the data and sends notifications if an update has occurred. To handle these notifications, a NotificationListener needs to be added to the object the thread is being started from.
      Specified by:
      startNotifying in interface HealthCenterData
      Parameters:
      delay - The number of milliseconds between each update. The default is 2000 milliseconds and anything below this will not be accepted.
    • addFileListener

      public void addFileListener(FileEventListener listener)
      Description copied from interface: IOData
      Add a listener for notification of when file events occur
      Specified by:
      addFileListener in interface IOData
    • removeFileListener

      public void removeFileListener(FileEventListener listener)
      Description copied from interface: IOData
      Remove one of registered listeners.
      Specified by:
      removeFileListener in interface IOData