Class EmptyS3AStatisticsContext

java.lang.Object
org.apache.hadoop.fs.s3a.statistics.impl.EmptyS3AStatisticsContext
All Implemented Interfaces:
CountersAndGauges, S3AStatisticsContext, org.apache.hadoop.fs.statistics.DurationTrackerFactory

public final class EmptyS3AStatisticsContext extends Object implements S3AStatisticsContext
Special statistics context, all of whose context operations are no-ops. All statistics instances it returns are also empty.

This class is here primarily to aid in testing, but it also allows for classes to require a non-empty statistics context in their constructor -yet still be instantiated without one bound to any filesystem.