Class NoOpStatisticsCollector
java.lang.Object
org.dataloader.stats.NoOpStatisticsCollector
- All Implemented Interfaces:
StatisticsCollector
A statistics collector that does nothing
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongincrementBatchLoadCountBy(long delta) Deprecated.<K> longincrementBatchLoadCountBy(long delta, IncrementBatchLoadCountByStatisticsContext<K> context) Called to increment the number of batch loadslongDeprecated.<K> longCalled to increment the number of batch loads exceptionslongDeprecated.<K> longCalled to increment the number of cache hitslongDeprecated.<K> longCalled to increment the number of loadslongDeprecated.<K> longCalled to increment the number of loads that resulted in an object deemed in error
-
Field Details
-
ZERO_STATS
-
-
Constructor Details
-
NoOpStatisticsCollector
public NoOpStatisticsCollector()
-
-
Method Details
-
incrementLoadCount
Description copied from interface:StatisticsCollectorCalled to increment the number of loads- Specified by:
incrementLoadCountin interfaceStatisticsCollector- Type Parameters:
K- the class of the key in the data loader- Parameters:
context- the context containing metadata of the data loader invocation- Returns:
- the current value after increment
-
incrementLoadCount
Deprecated.Description copied from interface:StatisticsCollectorCalled to increment the number of loads- Specified by:
incrementLoadCountin interfaceStatisticsCollector- Returns:
- the current value after increment
-
incrementLoadErrorCount
Description copied from interface:StatisticsCollectorCalled to increment the number of loads that resulted in an object deemed in error- Specified by:
incrementLoadErrorCountin interfaceStatisticsCollector- Type Parameters:
K- the class of the key in the data loader- Parameters:
context- the context containing metadata of the data loader invocation- Returns:
- the current value after increment
-
incrementLoadErrorCount
Deprecated.Description copied from interface:StatisticsCollectorCalled to increment the number of loads that resulted in an object deemed in error- Specified by:
incrementLoadErrorCountin interfaceStatisticsCollector- Returns:
- the current value after increment
-
incrementBatchLoadCountBy
public <K> long incrementBatchLoadCountBy(long delta, IncrementBatchLoadCountByStatisticsContext<K> context) Description copied from interface:StatisticsCollectorCalled to increment the number of batch loads- Specified by:
incrementBatchLoadCountByin interfaceStatisticsCollector- Type Parameters:
K- the class of the key in the data loader- Parameters:
delta- how much to add to the countcontext- the context containing metadata of the data loader invocation- Returns:
- the current value after increment
-
incrementBatchLoadCountBy
Deprecated.Description copied from interface:StatisticsCollectorCalled to increment the number of batch loads- Specified by:
incrementBatchLoadCountByin interfaceStatisticsCollector- Parameters:
delta- how much to add to the count- Returns:
- the current value after increment
-
incrementBatchLoadExceptionCount
public <K> long incrementBatchLoadExceptionCount(IncrementBatchLoadExceptionCountStatisticsContext<K> context) Description copied from interface:StatisticsCollectorCalled to increment the number of batch loads exceptions- Specified by:
incrementBatchLoadExceptionCountin interfaceStatisticsCollector- Type Parameters:
K- the class of the key in the data loader- Parameters:
context- the context containing metadata of the data loader invocation- Returns:
- the current value after increment
-
incrementBatchLoadExceptionCount
Deprecated.Description copied from interface:StatisticsCollectorCalled to increment the number of batch loads exceptions- Specified by:
incrementBatchLoadExceptionCountin interfaceStatisticsCollector- Returns:
- the current value after increment
-
incrementCacheHitCount
Description copied from interface:StatisticsCollectorCalled to increment the number of cache hits- Specified by:
incrementCacheHitCountin interfaceStatisticsCollector- Type Parameters:
K- the class of the key in the data loader- Parameters:
context- the context containing metadata of the data loader invocation- Returns:
- the current value after increment
-
incrementCacheHitCount
Deprecated.Description copied from interface:StatisticsCollectorCalled to increment the number of cache hits- Specified by:
incrementCacheHitCountin interfaceStatisticsCollector- Returns:
- the current value after increment
-
getStatistics
- Specified by:
getStatisticsin interfaceStatisticsCollector- Returns:
- the statistics that have been gathered up to this point in time
-