org.gmetrics.metricset
Class MetricSetBuilder
java.lang.Object
org.gmetrics.metricset.MetricSetBuilder
- All Implemented Interfaces:
- groovy.lang.GroovyObject
public class MetricSetBuilder
- extends java.lang.Object
- implements groovy.lang.GroovyObject
A Builder for MetricSets. Create a MetricSet by calling the metricset
method, passing in a Closure defining the contents of the MetricSet.
The Closure can contain any combination of the following (as well as
arbitrary Groovy code):
metricset - to load a MetricSet file. The path specifies a Groovy file.
metric - to load a single Metric; specify the Metric class
description - description of the MetricSet (optional)
- Version:
- $Revision: 101 $ - $Date: 2010-03-10 19:17:23 -0500 (Wed, 10 Mar 2010) $
- Author:
- Chris Mair
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetricSetBuilder
public MetricSetBuilder()
metricset
public void metricset(groovy.lang.Closure closure)
getMetricSet
public MetricSet getMetricSet()
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.