Class ProfileMonitorFactory

  • Direct Known Subclasses:
    JamonMonitorFactory, SimpleProfileMonitorFactory

    public abstract class ProfileMonitorFactory
    extends java.lang.Object
    This factory abstracts the differences between the monitor based on JAMon and the simple monitor provided by PatternTesting itself.
    Since:
    1.6
    • Constructor Detail

      • ProfileMonitorFactory

        protected ProfileMonitorFactory​(SimpleProfileMonitor rootMonitor)
        Instantiates a new monitor factory.
        Parameters:
        rootMonitor - the root monitor
    • Method Detail

      • getRootMonitor

        public SimpleProfileMonitor getRootMonitor()
        Gets the root monitor.
        Returns:
        the root monitor
      • setMaxNumMonitors

        public abstract void setMaxNumMonitors​(int maxMonitors)
        Sets the max num monitors.
        Parameters:
        maxMonitors - the new max num monitors
      • getMaxNumMonitors

        public abstract int getMaxNumMonitors()
        Gets the max num monitors.
        Returns:
        the max num monitors
      • addMonitors

        public abstract void addMonitors​(java.util.List<java.lang.String> labels)
        Adds the monitors.
        Parameters:
        labels - the labels
      • addMonitor

        public void addMonitor​(java.lang.String label)
        Adds the monitor.
        Parameters:
        label - the label
      • getMonitor

        public abstract ProfileMonitor getMonitor​(java.lang.String label)
        Gets the monitor.
        Parameters:
        label - the label or signature
        Returns:
        the monitor
      • getMonitors

        public abstract ProfileMonitor[] getMonitors()
        Gets the monitors (unsorted).
        Returns:
        the monitors
      • reset

        public abstract void reset()
        Reset.
      • toString

        public java.lang.String toString()
        To string.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string
        See Also:
        Object.toString()