org.gmetrics.metricset
Class GroovyDslMetricSet
java.lang.Object
org.gmetrics.metricset.GroovyDslMetricSet
- All Implemented Interfaces:
- groovy.lang.GroovyObject, MetricSet
public class GroovyDslMetricSet
- extends java.lang.Object
- implements groovy.lang.GroovyObject, MetricSet
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.
- Version:
- $Revision: 101 $ - $Date: 2010-03-10 19:17:23 -0500 (Wed, 10 Mar 2010) $
- Author:
- Chris Mair
|
Constructor Summary |
GroovyDslMetricSet(java.lang.String path)
Construct a new instance on the specified Groovy DSL MetricSet file path |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyDslMetricSet
public GroovyDslMetricSet(java.lang.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
public java.util.List getMetrics()
- Specified by:
getMetrics in interface MetricSet
- Returns:
- a List of Metric objects
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass metaClass)
- Specified by:
setMetaClass in interface groovy.lang.GroovyObject
invokeMethod
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
- Specified by:
invokeMethod in interface groovy.lang.GroovyObject
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getProperty in interface groovy.lang.GroovyObject
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
- Specified by:
setProperty in interface groovy.lang.GroovyObject
Copyright © 2010. All Rights Reserved.