com.sun.faban.driver.util
Class ContentSizeStats

java.lang.Object
  extended by com.sun.faban.driver.util.ContentSizeStats
All Implemented Interfaces:
CustomMetrics, Serializable, Cloneable

public class ContentSizeStats
extends Object
implements CustomMetrics

The ContentSizeStats collects the content size metrics for the FabanHTTPBench or othe standard Http drivers.

Author:
Akara Sucharitakul
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.faban.driver.CustomMetrics
CustomMetrics.Element
 
Field Summary
 long[] sumContentSize
          The sum of content sizes.
 
Constructor Summary
ContentSizeStats(int opCount)
          Constructs the ContentSizeStats for the given number of operations.
 
Method Summary
 void add(CustomMetrics other)
          Aggregates the ContentSizeStats from another source or thread with the current one.
 Object clone()
          The metrics need to be cloneable and not throw any exceptions.
 CustomMetrics.Element[] getResults()
          Obtains the results of this ContentSizeStats as to be reported.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sumContentSize

public long[] sumContentSize
The sum of content sizes.

Constructor Detail

ContentSizeStats

public ContentSizeStats(int opCount)
Constructs the ContentSizeStats for the given number of operations.

Parameters:
opCount - The number of operations.
Method Detail

add

public void add(CustomMetrics other)
Aggregates the ContentSizeStats from another source or thread with the current one.

Specified by:
add in interface CustomMetrics
Parameters:
other - The stats from another source

clone

public Object clone()
The metrics need to be cloneable and not throw any exceptions.

Specified by:
clone in interface CustomMetrics
Overrides:
clone in class Object
Returns:
The ContentSizeStats clone

getResults

public CustomMetrics.Element[] getResults()
Obtains the results of this ContentSizeStats as to be reported.

Specified by:
getResults in interface CustomMetrics
Returns:
The result elements for each metric.