Package | Description |
---|---|
org.apache.hadoop.fs.statistics.impl |
Implementation support for statistics.
|
Modifier and Type | Method and Description |
---|---|
static <B> CallableRaisingIOE<B> |
IOStatisticsBinding.trackDurationOfOperation(DurationTrackerFactory factory,
String statistic,
CallableRaisingIOE<B> input)
Given an IOException raising callable/lambda expression,
return a new one which wraps the inner and tracks
the duration of the operation, including whether
it passes/fails.
|
Modifier and Type | Method and Description |
---|---|
static <B> B |
IOStatisticsBinding.trackDuration(DurationTrackerFactory factory,
String statistic,
CallableRaisingIOE<B> input)
Given an IOException raising callable/lambda expression,
execute it and update the relevant statistic.
|
static <B> CallableRaisingIOE<B> |
IOStatisticsBinding.trackDurationOfOperation(DurationTrackerFactory factory,
String statistic,
CallableRaisingIOE<B> input)
Given an IOException raising callable/lambda expression,
return a new one which wraps the inner and tracks
the duration of the operation, including whether
it passes/fails.
|
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.