Package org.dataloader.stats
Interface StatisticsCollector
-
- All Known Implementing Classes:
DelegatingStatisticsCollector,NoOpStatisticsCollector,SimpleStatisticsCollector,ThreadLocalStatisticsCollector
@PublicSpi public interface StatisticsCollector
This allows statistics to be collected forDataLoaderoperations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description StatisticsgetStatistics()voidincrementBatchLoadCountBy(long delta)default <K> voidincrementBatchLoadCountBy(long delta, IncrementBatchLoadCountByStatisticsContext<K> context)Called to increment the number of batch loadsvoidincrementBatchLoadExceptionCount()default <K> voidincrementBatchLoadExceptionCount(IncrementBatchLoadExceptionCountStatisticsContext<K> context)Called to increment the number of batch loads exceptionsvoidincrementCacheHitCount()Deprecated.default <K> voidincrementCacheHitCount(IncrementCacheHitCountStatisticsContext<K> context)Called to increment the number of cache hitsvoidincrementLoadCount()Deprecated.default <K> voidincrementLoadCount(IncrementLoadCountStatisticsContext<K> context)Called to increment the number of loadsvoidincrementLoadErrorCount()default <K> voidincrementLoadErrorCount(IncrementLoadErrorCountStatisticsContext<K> context)Called to increment the number of loads that resulted in an object deemed in error
-
-
-
Method Detail
-
incrementLoadCount
default <K> void incrementLoadCount(IncrementLoadCountStatisticsContext<K> context)
Called to increment the number of loads- 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 void incrementLoadCount()
Deprecated.Called to increment the number of loads
-
incrementLoadErrorCount
default <K> void incrementLoadErrorCount(IncrementLoadErrorCountStatisticsContext<K> context)
Called to increment the number of loads that resulted in an object deemed in error- 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 void incrementLoadErrorCount()
Called to increment the number of loads that resulted in an object deemed in error
-
incrementBatchLoadCountBy
default <K> void incrementBatchLoadCountBy(long delta, IncrementBatchLoadCountByStatisticsContext<K> context)Called to increment the number of batch loads- 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 void incrementBatchLoadCountBy(long delta)
Called to increment the number of batch loads- Parameters:
delta- how much to add to the count
-
incrementBatchLoadExceptionCount
default <K> void incrementBatchLoadExceptionCount(IncrementBatchLoadExceptionCountStatisticsContext<K> context)
Called to increment the number of batch loads exceptions- 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 void incrementBatchLoadExceptionCount()
Called to increment the number of batch loads exceptions
-
incrementCacheHitCount
default <K> void incrementCacheHitCount(IncrementCacheHitCountStatisticsContext<K> context)
Called to increment the number of cache hits- 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 void incrementCacheHitCount()
Deprecated.Called to increment the number of cache hits
-
getStatistics
Statistics getStatistics()
- Returns:
- the statistics that have been gathered to this point in time
-
-