All Implemented Interfaces:
HealthCenterData, MethodTraceData, NotificationBroadcaster, NotificationEmitter

public class MethodTraceDataImpl extends HealthCenterDataImpl implements MethodTraceData
  • Constructor Details

    • MethodTraceDataImpl

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

    • getMethodTraceEvents

      public MethodTraceEvent[] getMethodTraceEvents()
      Description copied from interface: MethodTraceData
      Returns an array of method trace data.
      Specified by:
      getMethodTraceEvents in interface MethodTraceData
      Returns:
      MethodTraceEvent array of method trace events available over time since monitoring started and is available in memory.
    • 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.