org.gmetrics.metricset
Class GroovyDslMetricSet
java.lang.Object
org.gmetrics.metricset.GroovyDslMetricSet
class GroovyDslMetricSet
A MetricSet
implementation that parses a Groovy DSL of Metric definitions.
The filename passed into the constructor is interpreted relative to the classpath.
Note that this class attempts to read the file and parse the Groovy from within the constructor.
- Authors:
- Chris Mair
- Version:
- \$Revision: 103 \$ - \$Date: 2010-05-31 17:15:42 -0400 (Mon, 31 May 2010) \$
Constructor Summary |
GroovyDslMetricSet(String path)
Construct a new instance on the specified Groovy DSL MetricSet file path
|
GroovyDslMetricSet
public GroovyDslMetricSet(String path)
- Construct a new instance on the specified Groovy DSL MetricSet file path
- Parameters:
path
- - the path to the Groovy DSL MetricSet definition file, relative to the classpath; must not be empty or null
getMetrics
List getMetrics()
-
- Returns:
- a List of Metric objects
Groovy Documentation