ca.intelliware.amakihi.util.performance
Class AttributeResponseTimeTable

java.lang.Object
  |
  +--ca.intelliware.amakihi.util.performance.AttributeResponseTimeTable

public class AttributeResponseTimeTable
extends java.lang.Object


Inner Class Summary
 class AttributeResponseTimeTable.Metric
           
 
Constructor Summary
AttributeResponseTimeTable(long responseTimeInterval, java.lang.String attributeName)
           
 
Method Summary
 void addMetric(java.lang.String attribute, long startTime, long elapsedTime)
           
 AttributeResponseTimeTable.Metric[] getAllMetrics(java.lang.String attribute)
           
 AttributeResponseTimeTable.Metric[] getAllMetrics(java.lang.String attribute, int interval)
           
 java.lang.String[] getAttributes()
           
protected  Averager getAverager(AttributeResponseTimeTable.Metric[] metrics)
           
 Averager getAverager(java.lang.String attribute)
           
protected  void writeTo(java.io.Writer writer, java.lang.String indentation)
          Write the table as XML to a writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeResponseTimeTable

public AttributeResponseTimeTable(long responseTimeInterval,
                                  java.lang.String attributeName)
Method Detail

addMetric

public void addMetric(java.lang.String attribute,
                      long startTime,
                      long elapsedTime)

getAttributes

public java.lang.String[] getAttributes()

getAllMetrics

public AttributeResponseTimeTable.Metric[] getAllMetrics(java.lang.String attribute,
                                                         int interval)

getAllMetrics

public AttributeResponseTimeTable.Metric[] getAllMetrics(java.lang.String attribute)

getAverager

public Averager getAverager(java.lang.String attribute)

getAverager

protected Averager getAverager(AttributeResponseTimeTable.Metric[] metrics)

writeTo

protected void writeTo(java.io.Writer writer,
                       java.lang.String indentation)
                throws java.io.IOException

Write the table as XML to a writer.

FIXME: I'm not sure about giving this class the additional responsibility of "knowing" about its rendered format.



Copyright 2002 Intelliware Development. All Rights Reserved.