All Implemented Interfaces:
ClassesData, HealthCenterData, NotificationBroadcaster, NotificationEmitter

public class ClassesDataImpl extends HealthCenterDataImpl implements ClassesData
  • Constructor Details

    • ClassesDataImpl

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

    • getClassesLoaded

      public ClassLoadData[] getClassesLoaded()
      Description copied from interface: ClassesData
      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
      Specified by:
      getClassesLoaded in interface ClassesData
      Returns:
      a ClassLoadData array of loaded classes.
    • getRecommendationLabel

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

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

      public ClassHistogramData[] getClassHistogram()
      Description copied from interface: ClassesData
      Gets the class histogram data.
      Specified by:
      getClassHistogram in interface ClassesData
      Returns:
      an array of ClassHistogramData objects.
    • 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.
    • addClassesListener

      public void addClassesListener(ClassesEventListener listener)
      Description copied from interface: ClassesData
      Add a listener for notification of when a class load event occurs
      Specified by:
      addClassesListener in interface ClassesData
    • removeClassesListener

      public void removeClassesListener(ClassesEventListener listener)
      Description copied from interface: ClassesData
      Remove one of registered listeners.
      Specified by:
      removeClassesListener in interface ClassesData
    • addClassHistogramListener

      public void addClassHistogramListener(ClassHistogramEventListener listener)
      Description copied from interface: ClassesData
      Add a listener for notification of when a class histogram event occurs
      Specified by:
      addClassHistogramListener in interface ClassesData
    • removeClassHistogramListener

      public void removeClassHistogramListener(ClassHistogramEventListener listener)
      Description copied from interface: ClassesData
      Remove one of registered listeners.
      Specified by:
      removeClassHistogramListener in interface ClassesData