Class JamonMonitorFactory


  • public final class JamonMonitorFactory
    extends ProfileMonitorFactory
    This is a thin wrapper around com.jamonapi.MonitorFactory to keep the ProfileStatistic class clean from com.jamonapi dependencies.
    Since:
    27.12.2008
    Version:
    $Revision: 1.20 $
    Author:
    oliver
    • Constructor Detail

      • JamonMonitorFactory

        public JamonMonitorFactory​(SimpleProfileMonitor rootMonitor)
        Instantiates a new jamon monitor factory.
        Parameters:
        rootMonitor - the root monitor
    • Method Detail

      • setMaxNumMonitors

        public void setMaxNumMonitors​(int maxMonitors)
        Sets the max num monitors.
        Specified by:
        setMaxNumMonitors in class ProfileMonitorFactory
        Parameters:
        maxMonitors - the new max num monitors
      • setMaxNumMonitors

        public static void setMaxNumMonitors​(int maxMonitors,
                                             ProfileMonitor rootMonitor)
        Sets the max num monitors.
        Parameters:
        maxMonitors - the max monitors
        rootMonitor - the root monitor
        Since:
        1.6
      • getMaxNumMonitors

        public static int getMaxNumMonitors​(ProfileMonitor rootMonitor)
        Gets the max num monintors.
        Parameters:
        rootMonitor - the root monitor
        Returns:
        the max num monintors
      • reset

        public static void reset​(ProfileMonitor rootMonitor)
        Reset.
        Parameters:
        rootMonitor - the root monitor
        Since:
        1.4.2
      • reset

        public static void reset​(java.lang.String rootLabel)
        Reset.
        Parameters:
        rootLabel - the root label
        Since:
        1.4.2
      • start

        public static ProfileMonitor start​(java.lang.String label,
                                           ProfileMonitor root)
        Start.
        Parameters:
        label - the label
        root - the root
        Returns:
        the profile monitor
      • start

        public static ProfileMonitor start​(java.lang.String label,
                                           java.lang.String rootLabel)
        Start.
        Parameters:
        label - the label
        rootLabel - the root label
        Returns:
        the profile monitor
      • getMonitor

        public static ProfileMonitor getMonitor​(org.aspectj.lang.Signature sig,
                                                ProfileMonitor root)
        Gets the monitor.
        Parameters:
        sig - the sig
        root - the root
        Returns:
        the monitor
        Since:
        1.4.2
      • getMonitor

        public static ProfileMonitor getMonitor​(java.lang.String label,
                                                ProfileMonitor root)
        Gets the monitor.
        Parameters:
        label - the label
        root - the root monitor
        Returns:
        the monitor
        Since:
        1.4.2
      • getMonitors

        public static ProfileMonitor[] getMonitors​(ProfileMonitor root)
        Gets the monitors.
        Parameters:
        root - the root
        Returns:
        the monitors
        Since:
        1.4.2
      • getMonitors

        public static ProfileMonitor[] getMonitors​(java.lang.String rootLabel)
        Gets the monitors.
        Parameters:
        rootLabel - the root label
        Returns:
        the monitors
        Since:
        1.4.2