java.io.Serializable@Public
@Unstable
public final class DurationStatisticSummary
extends java.lang.Object
implements java.io.Serializable
This is for reporting and testing.
| Constructor | Description |
|---|---|
DurationStatisticSummary(java.lang.String key,
boolean success,
long count,
long max,
long min,
MeanStatistic mean) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
static DurationStatisticSummary |
fetchDurationSummary(IOStatistics source,
java.lang.String key,
boolean success) |
Fetch the duration timing summary of success or failure operations
from an IO Statistics source.
|
static DurationStatisticSummary |
fetchSuccessSummary(IOStatistics source,
java.lang.String key) |
Fetch the duration timing summary from an IOStatistics source.
|
long |
getCount() |
|
java.lang.String |
getKey() |
|
long |
getMax() |
|
MeanStatistic |
getMean() |
|
long |
getMin() |
|
boolean |
isSuccess() |
|
java.lang.String |
toString() |
public DurationStatisticSummary(java.lang.String key,
boolean success,
long count,
long max,
long min,
@Nullable
MeanStatistic mean)
key - Statistic key.success - Are these success or failure statistics.count - Count of operation invocations.max - Max duration; -1 if unknown.min - Min duration; -1 if unknown.mean - Mean duration -may be null. (will be cloned)public java.lang.String getKey()
public boolean isSuccess()
public long getCount()
public long getMax()
public long getMin()
public MeanStatistic getMean()
public java.lang.String toString()
toString in class java.lang.Objectpublic static DurationStatisticSummary fetchDurationSummary(IOStatistics source, java.lang.String key, boolean success)
source - source of datakey - duration statistic keysuccess - fetch success statistics, or if false, failure stats.public static DurationStatisticSummary fetchSuccessSummary(IOStatistics source, java.lang.String key)
source - source of datakey - duration statistic keyCopyright © 2008–2025 Apache Software Foundation. All rights reserved.