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