Package org.dataloader.stats
Class NoOpStatisticsCollector
java.lang.Object
org.dataloader.stats.NoOpStatisticsCollector
- All Implemented Interfaces:
StatisticsCollector
A statistics collector that does nothing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
incrementBatchLoadCountBy
(long delta) Deprecated.<K> void
incrementBatchLoadCountBy
(long delta, IncrementBatchLoadCountByStatisticsContext<K> context) Called to increment the number of batch loadsvoid
Deprecated.<K> void
Called to increment the number of batch loads exceptionsvoid
Deprecated.<K> void
Called to increment the number of cache hitsvoid
Deprecated.<K> void
Called to increment the number of loadsvoid
Deprecated.<K> void
Called to increment the number of loads that resulted in an object deemed in error
-
Constructor Details
-
NoOpStatisticsCollector
public NoOpStatisticsCollector()
-
-
Method Details
-
incrementLoadCount
Description copied from interface:StatisticsCollector
Called to increment the number of loads- Specified by:
incrementLoadCount
in interfaceStatisticsCollector
- Type Parameters:
K
- the class of the key in the data loader- Parameters:
context
- the context containing metadata of the data loader invocation
-
incrementLoadCount
Deprecated.Description copied from interface:StatisticsCollector
Called to increment the number of loads- Specified by:
incrementLoadCount
in interfaceStatisticsCollector
-
incrementLoadErrorCount
Description copied from interface:StatisticsCollector
Called to increment the number of loads that resulted in an object deemed in error- Specified by:
incrementLoadErrorCount
in interfaceStatisticsCollector
- Type Parameters:
K
- the class of the key in the data loader- Parameters:
context
- the context containing metadata of the data loader invocation
-
incrementLoadErrorCount
Deprecated.Description copied from interface:StatisticsCollector
Called to increment the number of loads that resulted in an object deemed in error- Specified by:
incrementLoadErrorCount
in interfaceStatisticsCollector
-
incrementBatchLoadCountBy
public <K> void incrementBatchLoadCountBy(long delta, IncrementBatchLoadCountByStatisticsContext<K> context) Description copied from interface:StatisticsCollector
Called to increment the number of batch loads- Specified by:
incrementBatchLoadCountBy
in 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
-
incrementBatchLoadCountBy
Deprecated.Description copied from interface:StatisticsCollector
Called to increment the number of batch loads- Specified by:
incrementBatchLoadCountBy
in interfaceStatisticsCollector
- Parameters:
delta
- how much to add to the count
-
incrementBatchLoadExceptionCount
public <K> void incrementBatchLoadExceptionCount(IncrementBatchLoadExceptionCountStatisticsContext<K> context) Description copied from interface:StatisticsCollector
Called to increment the number of batch loads exceptions- Specified by:
incrementBatchLoadExceptionCount
in interfaceStatisticsCollector
- Type Parameters:
K
- the class of the key in the data loader- Parameters:
context
- the context containing metadata of the data loader invocation
-
incrementBatchLoadExceptionCount
Deprecated.Description copied from interface:StatisticsCollector
Called to increment the number of batch loads exceptions- Specified by:
incrementBatchLoadExceptionCount
in interfaceStatisticsCollector
-
incrementCacheHitCount
Description copied from interface:StatisticsCollector
Called to increment the number of cache hits- Specified by:
incrementCacheHitCount
in interfaceStatisticsCollector
- Type Parameters:
K
- the class of the key in the data loader- Parameters:
context
- the context containing metadata of the data loader invocation
-
incrementCacheHitCount
Deprecated.Description copied from interface:StatisticsCollector
Called to increment the number of cache hits- Specified by:
incrementCacheHitCount
in interfaceStatisticsCollector
-
getStatistics
- Specified by:
getStatistics
in interfaceStatisticsCollector
- Returns:
- the statistics that have been gathered to this point in time
-