@InterfaceAudience.Public @InterfaceStability.Unstable public final class DurationStatisticSummary extends Object implements Serializable
This is for reporting and testing.
Constructor and Description |
---|
DurationStatisticSummary(String key,
boolean success,
long count,
long max,
long min,
MeanStatistic mean)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static DurationStatisticSummary |
fetchDurationSummary(IOStatistics source,
String key,
boolean success)
Fetch the duration timing summary of success or failure operations
from an IO Statistics source.
|
static DurationStatisticSummary |
fetchSuccessSummary(IOStatistics source,
String key)
Fetch the duration timing summary from an IOStatistics source.
|
long |
getCount() |
String |
getKey() |
long |
getMax() |
MeanStatistic |
getMean() |
long |
getMin() |
boolean |
isSuccess() |
String |
toString() |
public DurationStatisticSummary(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 String getKey()
public boolean isSuccess()
public long getCount()
public long getMax()
public long getMin()
public MeanStatistic getMean()
public static DurationStatisticSummary fetchDurationSummary(IOStatistics source, 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, String key)
source
- source of datakey
- duration statistic keyCopyright © 2023 Apache Software Foundation. All rights reserved.