Package | Description |
---|---|
org.apache.hadoop.fs.statistics |
This package contains support for statistic collection and reporting.
|
org.apache.hadoop.fs.statistics.impl |
Implementation support for statistics.
|
Modifier and Type | Method and Description |
---|---|
static DurationTrackerFactory |
IOStatisticsSupport.stubDurationTrackerFactory()
Return a stub duration tracker factory whose returned trackers
are always no-ops.
|
Modifier and Type | Interface and Description |
---|---|
interface |
IOStatisticsStore
Interface of an IOStatistics store intended for
use in classes which track statistics for reporting.
|
Modifier and Type | Class and Description |
---|---|
class |
StubDurationTrackerFactory
This is a stub factory which always returns no-op duration
trackers.
|
Modifier and Type | Method and Description |
---|---|
static DurationTrackerFactory |
IOStatisticsBinding.pairedTrackerFactory(DurationTrackerFactory first,
DurationTrackerFactory second)
Create a DurationTrackerFactory which aggregates the tracking
of two other factories.
|
Modifier and Type | Method and Description |
---|---|
static DurationTrackerFactory |
IOStatisticsBinding.pairedTrackerFactory(DurationTrackerFactory first,
DurationTrackerFactory second)
Create a DurationTrackerFactory which aggregates the tracking
of two other factories.
|
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> ConsumerRaisingIOE<B> |
IOStatisticsBinding.trackDurationConsumer(DurationTrackerFactory factory,
String statistic,
ConsumerRaisingIOE<B> input)
Given an IOException raising Consumer,
return a new one which wraps the inner and tracks
the duration of the operation, including whether
it passes/fails.
|
static <B> Callable<B> |
IOStatisticsBinding.trackDurationOfCallable(DurationTrackerFactory factory,
String statistic,
Callable<B> input)
Given a callable/lambda expression,
return a new one which wraps the inner and tracks
the duration of the operation, including whether
it passes/fails.
|
static void |
IOStatisticsBinding.trackDurationOfInvocation(DurationTrackerFactory factory,
String statistic,
InvocationRaisingIOE 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.
|
static <B> B |
IOStatisticsBinding.trackDurationOfSupplier(DurationTrackerFactory factory,
String statistic,
Supplier<B> input)
Given a Java supplier, evaluate it while
tracking the duration of the operation and success/failure.
|
static <A,B> FunctionRaisingIOE<A,B> |
IOStatisticsBinding.trackFunctionDuration(DurationTrackerFactory factory,
String statistic,
FunctionRaisingIOE<A,B> inputFn)
Given an IOException raising function/lambda expression,
return a new one which wraps the inner and tracks
the duration of the operation, including whether
it passes/fails.
|
static <A,B> Function<A,B> |
IOStatisticsBinding.trackJavaFunctionDuration(DurationTrackerFactory factory,
String statistic,
Function<A,B> inputFn)
Given a java function/lambda expression,
return a new one which wraps the inner and tracks
the duration of the operation, including whether
it passes/fails.
|
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.