Package org.dataloader.stats
Interface StatisticsCollector
-
- All Known Implementing Classes:
DelegatingStatisticsCollector
,NoOpStatisticsCollector
,SimpleStatisticsCollector
,ThreadLocalStatisticsCollector
@PublicSpi public interface StatisticsCollector
This allows statistics to be collected forDataLoader
operations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Statistics
getStatistics()
void
incrementBatchLoadCountBy(long delta)
default <K> void
incrementBatchLoadCountBy(long delta, IncrementBatchLoadCountByStatisticsContext<K> context)
Called to increment the number of batch loadsvoid
incrementBatchLoadExceptionCount()
default <K> void
incrementBatchLoadExceptionCount(IncrementBatchLoadExceptionCountStatisticsContext<K> context)
Called to increment the number of batch loads exceptionsvoid
incrementCacheHitCount()
Deprecated.default <K> void
incrementCacheHitCount(IncrementCacheHitCountStatisticsContext<K> context)
Called to increment the number of cache hitsvoid
incrementLoadCount()
Deprecated.default <K> void
incrementLoadCount(IncrementLoadCountStatisticsContext<K> context)
Called to increment the number of loadsvoid
incrementLoadErrorCount()
default <K> void
incrementLoadErrorCount(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
-
-