org.gmetrics.metricset
Class CompositeMetricSet

java.lang.Object
  extended by org.gmetrics.metricset.CompositeMetricSet
All Implemented Interfaces:
groovy.lang.GroovyObject, MetricSet

public class CompositeMetricSet
extends java.lang.Object
implements groovy.lang.GroovyObject, MetricSet

A MetricSet implementation that aggregates a set of MetricSets and Metrics.

Version:
$Revision: 101 $ - $Date: 2010-03-10 19:17:23 -0500 (Wed, 10 Mar 2010) $
Author:
Chris Mair

Constructor Summary
CompositeMetricSet()
           
 
Method Summary
 void addMetric(Metric metric)
          Add a single Metric to this MetricSet
 void addMetricSet(MetricSet metricSet)
          Add all of the Metrics within the specified MetricSet to this MetricSet
 groovy.lang.MetaClass getMetaClass()
           
 java.util.List getMetrics()
           
 java.lang.Object getProperty(java.lang.String name)
           
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeMetricSet

public CompositeMetricSet()
Method Detail

addMetric

public void addMetric(Metric metric)
Add a single Metric to this MetricSet

Parameters:
metric - - the Metric to add

addMetricSet

public void addMetricSet(MetricSet metricSet)
Add all of the Metrics within the specified MetricSet to this MetricSet

Parameters:
metricSet - - the MetricSet whose Metrics are to be included

getMetrics

public java.util.List getMetrics()
Specified by:
getMetrics in interface MetricSet
Returns:
a List of Metric objects. The returned List is immutable.

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.