Interface ClassesData

All Superinterfaces:
HealthCenterData, NotificationBroadcaster, NotificationEmitter
All Known Implementing Classes:
ClassesDataImpl

public interface ClassesData extends HealthCenterData
This class provides access to all the classes information that Health Center monitored.
  • Field Details

    • LOADEDCLASSESDATA

      static final String LOADEDCLASSESDATA
      Used to get only Loaded Classes Data when comparing against NotificationListener.getUserData()
      See Also:
    • CLASSHISTOGRAMDATA

      static final String CLASSHISTOGRAMDATA
      Used to get only Class Histogram Data when comparing against NotificationListener.getUserData()
      See Also:
  • Method Details

    • getClassesLoaded

      ClassLoadData[] getClassesLoaded()
      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
      Returns:
      a ClassLoadData array of loaded classes.
    • getClassHistogram

      ClassHistogramData[] getClassHistogram()
      Gets the class histogram data.
      Returns:
      an array of ClassHistogramData objects.
    • addClassesListener

      void addClassesListener(ClassesEventListener listener)
      Add a listener for notification of when a class load event occurs
      Parameters:
      implementation - of the ClassesEventListener class
    • removeClassesListener

      void removeClassesListener(ClassesEventListener listener)
      Remove one of registered listeners.
      Parameters:
      implementation - of the ClassesEventListener class
    • addClassHistogramListener

      void addClassHistogramListener(ClassHistogramEventListener listener)
      Add a listener for notification of when a class histogram event occurs
      Parameters:
      implementation - of the ClassHistogramEventListener class
    • removeClassHistogramListener

      void removeClassHistogramListener(ClassHistogramEventListener listener)
      Remove one of registered listeners.
      Parameters:
      implementation - of the ClassHistogramEventListener class