public class SimpleStatisticsCollector extends java.lang.Object implements StatisticsCollector
AtomicLongs to collect
statisticsStatisticsCollector| Constructor and Description |
|---|
SimpleStatisticsCollector() |
| Modifier and Type | Method and Description |
|---|---|
Statistics |
getStatistics() |
long |
incrementBatchLoadCountBy(long delta)
Deprecated.
|
<K> long |
incrementBatchLoadCountBy(long delta,
IncrementBatchLoadCountByStatisticsContext<K> context)
Called to increment the number of batch loads
|
long |
incrementBatchLoadExceptionCount()
Deprecated.
|
<K> long |
incrementBatchLoadExceptionCount(IncrementBatchLoadExceptionCountStatisticsContext<K> context)
Called to increment the number of batch loads exceptions
|
long |
incrementCacheHitCount()
Deprecated.
|
<K> long |
incrementCacheHitCount(IncrementCacheHitCountStatisticsContext<K> context)
Called to increment the number of cache hits
|
long |
incrementLoadCount()
Deprecated.
|
<K> long |
incrementLoadCount(IncrementLoadCountStatisticsContext<K> context)
Called to increment the number of loads
|
long |
incrementLoadErrorCount()
Deprecated.
|
<K> long |
incrementLoadErrorCount(IncrementLoadErrorCountStatisticsContext<K> context)
Called to increment the number of loads that resulted in an object deemed in error
|
java.lang.String |
toString() |
public <K> long incrementLoadCount(IncrementLoadCountStatisticsContext<K> context)
StatisticsCollectorincrementLoadCount in interface StatisticsCollectorK - the class of the key in the data loadercontext - the context containing metadata of the data loader invocation@Deprecated public long incrementLoadCount()
StatisticsCollectorincrementLoadCount in interface StatisticsCollectorpublic <K> long incrementLoadErrorCount(IncrementLoadErrorCountStatisticsContext<K> context)
StatisticsCollectorincrementLoadErrorCount in interface StatisticsCollectorK - the class of the key in the data loadercontext - the context containing metadata of the data loader invocation@Deprecated public long incrementLoadErrorCount()
StatisticsCollectorincrementLoadErrorCount in interface StatisticsCollectorpublic <K> long incrementBatchLoadCountBy(long delta,
IncrementBatchLoadCountByStatisticsContext<K> context)
StatisticsCollectorincrementBatchLoadCountBy in interface StatisticsCollectorK - the class of the key in the data loaderdelta - how much to add to the countcontext - the context containing metadata of the data loader invocation@Deprecated public long incrementBatchLoadCountBy(long delta)
StatisticsCollectorincrementBatchLoadCountBy in interface StatisticsCollectordelta - how much to add to the countpublic <K> long incrementBatchLoadExceptionCount(IncrementBatchLoadExceptionCountStatisticsContext<K> context)
StatisticsCollectorincrementBatchLoadExceptionCount in interface StatisticsCollectorK - the class of the key in the data loadercontext - the context containing metadata of the data loader invocation@Deprecated public long incrementBatchLoadExceptionCount()
StatisticsCollectorincrementBatchLoadExceptionCount in interface StatisticsCollectorpublic <K> long incrementCacheHitCount(IncrementCacheHitCountStatisticsContext<K> context)
StatisticsCollectorincrementCacheHitCount in interface StatisticsCollectorK - the class of the key in the data loadercontext - the context containing metadata of the data loader invocation@Deprecated public long incrementCacheHitCount()
StatisticsCollectorincrementCacheHitCount in interface StatisticsCollectorpublic Statistics getStatistics()
getStatistics in interface StatisticsCollectorpublic java.lang.String toString()
toString in class java.lang.Object