public class ContentSizeStats extends Object implements CustomMetrics
CustomMetrics.Element
Modifier and Type | Field and Description |
---|---|
long[] |
sumContentSize
The sum of content sizes.
|
Constructor and Description |
---|
ContentSizeStats(int opCount)
Constructs the ContentSizeStats for the given number of operations.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ContentSizeStats(int opCount)
opCount
- The number of operations.public void add(CustomMetrics other)
add
in interface CustomMetrics
other
- The stats from another sourcepublic Object clone()
clone
in interface CustomMetrics
clone
in class Object
public CustomMetrics.Element[] getResults()
getResults
in interface CustomMetrics