org.duracloud.common.util.metrics
Class MetricsTable

java.lang.Object
  extended by org.duracloud.common.util.metrics.MetricsTable

public class MetricsTable
extends Object

This class aggregates Metrics into a hierarchy roughly similar to a call stack.

Author:
Andrew Woods

Constructor Summary
MetricsTable()
           
 
Method Summary
 void addMetric(Metric metric)
           
 void addSubMetric(Metric parent, MetricsTable subTable)
           
 Iterator<Metric.MetricElement> getElements(Metric parent)
           
 Iterator<Metric> getMetrics()
           
 MetricsTable getSubTable(Metric parent, Metric.MetricElement elem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricsTable

public MetricsTable()
Method Detail

addMetric

public void addMetric(Metric metric)

addSubMetric

public void addSubMetric(Metric parent,
                         MetricsTable subTable)

getMetrics

public Iterator<Metric> getMetrics()

getElements

public Iterator<Metric.MetricElement> getElements(Metric parent)

getSubTable

public MetricsTable getSubTable(Metric parent,
                                Metric.MetricElement elem)
                         throws MetricException
Throws:
MetricException


Copyright © 2009-2011 DuraSpace. All Rights Reserved.