Package org.dataloader.stats
Class SimpleStatisticsCollector
java.lang.Object
org.dataloader.stats.SimpleStatisticsCollector
- All Implemented Interfaces:
StatisticsCollector
This simple collector uses
AtomicLongs to collect
statistics- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidincrementBatchLoadCountBy(long delta) Deprecated.<K> voidincrementBatchLoadCountBy(long delta, IncrementBatchLoadCountByStatisticsContext<K> context) Called to increment the number of batch loadsvoidDeprecated.<K> voidCalled to increment the number of batch loads exceptionsvoidDeprecated.<K> voidCalled to increment the number of cache hitsvoidDeprecated.<K> voidCalled to increment the number of loadsvoidDeprecated.<K> voidCalled to increment the number of loads that resulted in an object deemed in errortoString()
-
Constructor Details
-
SimpleStatisticsCollector
public SimpleStatisticsCollector()
-
-
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
-
incrementLoadCount
Deprecated.Description copied from interface:StatisticsCollectorCalled to increment the number of loads- Specified by:
incrementLoadCountin interfaceStatisticsCollector
-
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
-
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
-
incrementBatchLoadCountBy
public <K> void 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
-
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
-
incrementBatchLoadExceptionCount
public <K> void 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
-
incrementBatchLoadExceptionCount
Deprecated.Description copied from interface:StatisticsCollectorCalled to increment the number of batch loads exceptions- Specified by:
incrementBatchLoadExceptionCountin interfaceStatisticsCollector
-
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
-
incrementCacheHitCount
Deprecated.Description copied from interface:StatisticsCollectorCalled to increment the number of cache hits- Specified by:
incrementCacheHitCountin interfaceStatisticsCollector
-
getStatistics
- Specified by:
getStatisticsin interfaceStatisticsCollector- Returns:
- the statistics that have been gathered to this point in time
-
toString
-