Class ProfileMonitorFactory

java.lang.Object
clazzfish.jdbc.monitor.ProfileMonitorFactory
Direct Known Subclasses:
JamonMonitorFactory, SimpleProfileMonitorFactory

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

  • Constructor Details

    • ProfileMonitorFactory

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

    • 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(List<String> labels)
      Adds the monitors.
      Parameters:
      labels - the labels
    • addMonitor

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

      public abstract ProfileMonitor getMonitor(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 String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string
      See Also: