com.ibm.java.diagnostics.healthcenter.api.classes

Interface ClassesData

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


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

      • LOADEDCLASSESDATA

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

        static final java.lang.String CLASSHISTOGRAMDATA
        Used to get only Class Histogram Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
    • Method Detail

      • 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
© Copyright 2012, 2016 IBM Corporation.