Package org.dataloader.stats
Interface StatisticsCollector
- All Known Implementing Classes:
DelegatingStatisticsCollector
,NoOpStatisticsCollector
,SimpleStatisticsCollector
,ThreadLocalStatisticsCollector
This allows statistics to be collected for
DataLoader
operations-
Method Summary
Modifier and TypeMethodDescriptionvoid
incrementBatchLoadCountBy
(long delta) Deprecated.default <K> void
incrementBatchLoadCountBy
(long delta, IncrementBatchLoadCountByStatisticsContext<K> context) Called to increment the number of batch loadsvoid
default <K> void
Called to increment the number of batch loads exceptionsvoid
Deprecated.default <K> void
Called to increment the number of cache hitsvoid
Deprecated.default <K> void
Called to increment the number of loadsvoid
default <K> void
Called to increment the number of loads that resulted in an object deemed in error
-
Method Details
-
incrementLoadCount
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.Called to increment the number of loads -
incrementLoadErrorCount
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
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
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
Called to increment the number of batch loads exceptions -
incrementCacheHitCount
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.Called to increment the number of cache hits -
getStatistics
Statistics getStatistics()- Returns:
- the statistics that have been gathered to this point in time
-
incrementBatchLoadCountBy(long, IncrementBatchLoadCountByStatisticsContext)