patterntesting.runtime.monitor
Class JamonMonitorFactory

Package class diagram package JamonMonitorFactory
java.lang.Object
  extended by patterntesting.runtime.monitor.JamonMonitorFactory

public final class JamonMonitorFactory
extends Object

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.6 $
Author:
oliver

Method Summary
static void addMonitor(String label)
          Adds the monitor.
static void addMonitors(List<String> labels)
          Adds the monitors.
static ProfileMonitor getMonitor(Signature sig)
          Deprecated. use getMonitor(Signature, ProfileMonitor)
static ProfileMonitor getMonitor(Signature sig, ProfileMonitor root)
          Gets the monitor.
static ProfileMonitor getMonitor(String label, ProfileMonitor root)
          Gets the monitor.
static ProfileMonitor[] getMonitors()
          Deprecated. use getMonitors(ProfileMonitor)
static ProfileMonitor[] getMonitors(ProfileMonitor root)
          Gets the monitors.
static ProfileMonitor[] getMonitors(String rootLabel)
          Gets the monitors.
static void reset()
          Deprecated. use reset(ProfileMonitor)
static void reset(ProfileMonitor rootMonitor)
          Reset.
static void reset(String rootLabel)
          Reset.
static ProfileMonitor start(String label)
          Deprecated. use start(String, ProfileMonitor)
static ProfileMonitor start(String label, ProfileMonitor root)
          Start.
static ProfileMonitor start(String label, String rootLabel)
          Start.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reset

@Deprecated
public static void reset()
Deprecated. use reset(ProfileMonitor)

Reset.

TODO: This method will be removed in 1.6.


reset

public static void reset(ProfileMonitor rootMonitor)
Reset.

Parameters:
rootMonitor - the root monitor
Since:
1.4.2

reset

public static void reset(String rootLabel)
Reset.

Parameters:
rootLabel - the root label
Since:
1.4.2

start

@Deprecated
public static ProfileMonitor start(String label)
Deprecated. use start(String, ProfileMonitor)

Start.

TODO: This method will be removed in 1.6.

Parameters:
label - the label
Returns:
the profile monitor

start

public static ProfileMonitor start(String label,
                                   ProfileMonitor root)
Start.

Parameters:
label - the label
root - the root
Returns:
the profile monitor

start

public static ProfileMonitor start(String label,
                                   String rootLabel)
Start.

Parameters:
label - the label
rootLabel - the root label
Returns:
the profile monitor

addMonitors

public static void addMonitors(List<String> labels)
Adds the monitors.

Parameters:
labels - the labels

addMonitor

public static void addMonitor(String label)
Adds the monitor.

Parameters:
label - the label

getMonitor

@Deprecated
public static ProfileMonitor getMonitor(Signature sig)
Deprecated. use getMonitor(Signature, ProfileMonitor)

Gets the monitor.

TODO: This method will be removed in 1.6.

Parameters:
sig - the signature
Returns:
the monitor

getMonitor

public static ProfileMonitor getMonitor(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(String label,
                                        ProfileMonitor root)
Gets the monitor.

Parameters:
label - the label
root - the root monitor
Returns:
the monitor
Since:
1.4.2

getMonitors

@Deprecated
public static ProfileMonitor[] getMonitors()
Deprecated. use getMonitors(ProfileMonitor)

Gets the monitors.

TODO: This method will be removed in 1.6.

Returns:
the monitors

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(String rootLabel)
Gets the monitors.

Parameters:
rootLabel - the root label
Returns:
the monitors
Since:
1.4.2


Copyright © 2002–2014 PatternTesting Team. All rights reserved.