All Implemented Interfaces:
HealthCenterData, ProfilingData, NotificationBroadcaster, NotificationEmitter

public class ProfilingDataImpl extends HealthCenterDataImpl implements ProfilingData
  • Constructor Details

    • ProfilingDataImpl

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

    • getProfilingEvents

      public MethodProfileData[] getProfilingEvents()
      Description copied from interface: ProfilingData
      Returns all the method profiling data processed by Health Center. 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:
      getProfilingEvents in interface ProfilingData
      Returns:
      an array of profiling events.
    • 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.
    • addProfilingListener

      public void addProfilingListener(ProfilingEventListener listener)
      Description copied from interface: ProfilingData
      Add a listener for notification of when a profiling event occurs
      Specified by:
      addProfilingListener in interface ProfilingData
    • removeProfilingListener

      public void removeProfilingListener(ProfilingEventListener listener)
      Description copied from interface: ProfilingData
      Remove one of registered listeners.
      Specified by:
      removeProfilingListener in interface ProfilingData