public class SimpleStatisticsCollector extends java.lang.Object implements StatisticsCollector
AtomicLong
s 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)
StatisticsCollector
incrementLoadCount
in interface StatisticsCollector
K
- the class of the key in the data loadercontext
- the context containing metadata of the data loader invocation@Deprecated public long incrementLoadCount()
StatisticsCollector
incrementLoadCount
in interface StatisticsCollector
public <K> long incrementLoadErrorCount(IncrementLoadErrorCountStatisticsContext<K> context)
StatisticsCollector
incrementLoadErrorCount
in interface StatisticsCollector
K
- the class of the key in the data loadercontext
- the context containing metadata of the data loader invocation@Deprecated public long incrementLoadErrorCount()
StatisticsCollector
incrementLoadErrorCount
in interface StatisticsCollector
public <K> long incrementBatchLoadCountBy(long delta, IncrementBatchLoadCountByStatisticsContext<K> context)
StatisticsCollector
incrementBatchLoadCountBy
in interface StatisticsCollector
K
- 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)
StatisticsCollector
incrementBatchLoadCountBy
in interface StatisticsCollector
delta
- how much to add to the countpublic <K> long incrementBatchLoadExceptionCount(IncrementBatchLoadExceptionCountStatisticsContext<K> context)
StatisticsCollector
incrementBatchLoadExceptionCount
in interface StatisticsCollector
K
- the class of the key in the data loadercontext
- the context containing metadata of the data loader invocation@Deprecated public long incrementBatchLoadExceptionCount()
StatisticsCollector
incrementBatchLoadExceptionCount
in interface StatisticsCollector
public <K> long incrementCacheHitCount(IncrementCacheHitCountStatisticsContext<K> context)
StatisticsCollector
incrementCacheHitCount
in interface StatisticsCollector
K
- the class of the key in the data loadercontext
- the context containing metadata of the data loader invocation@Deprecated public long incrementCacheHitCount()
StatisticsCollector
incrementCacheHitCount
in interface StatisticsCollector
public Statistics getStatistics()
getStatistics
in interface StatisticsCollector
public java.lang.String toString()
toString
in class java.lang.Object