Groovy Documentation

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

 
Method Summary
List getMetrics()

@return a List of Metric objects

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

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


 
Method Detail

getMetrics

List getMetrics()
Returns:
a List of Metric objects


 

Groovy Documentation