Package org.gmetrics.metricregistry
Class DefaultMetricRegistry
- java.lang.Object
-
- org.gmetrics.metricregistry.DefaultMetricRegistry
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
,MetricRegistry
public class DefaultMetricRegistry extends Object implements MetricRegistry, groovy.lang.GroovyObject
-
-
Field Summary
Fields Modifier and Type Field Description static Object
METRIC_CLASSES
-
Constructor Summary
Constructors Constructor Description DefaultMetricRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>
getAllMetricNames()
groovy.lang.MetaClass
getMetaClass()
Class<Metric>
getMetricClass(String metricName)
Object
getProperty(String property)
Object
invokeMethod(String method, Object arguments)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(String property, Object value)
-
-
-
Field Detail
-
METRIC_CLASSES
public static final Object METRIC_CLASSES
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
getMetricClass
public Class<Metric> getMetricClass(String metricName)
- Specified by:
getMetricClass
in interfaceMetricRegistry
-
getAllMetricNames
public Collection<String> getAllMetricNames()
- Specified by:
getAllMetricNames
in interfaceMetricRegistry
-
-