org.apache.openjpa.datacache
Interface CacheStatisticsSPI

All Superinterfaces:
CacheStatistics, Serializable
All Known Implementing Classes:
CacheStatisticsImpl

public interface CacheStatisticsSPI
extends CacheStatistics

The provider extensions to the CacheStatistics interface.


Method Summary
 void disable()
          Disable statistics collection.
 void enable()
          Enable statistics collection.
 void newGet(Class<?> cls, boolean hit)
          Record a new cache get.
 void newPut(Class<?> cls)
          Record a new cache put.
 
Methods inherited from interface org.apache.openjpa.datacache.CacheStatistics
classNames, getHitCount, getHitCount, getHitCount, getReadCount, getReadCount, getReadCount, getTotalHitCount, getTotalHitCount, getTotalHitCount, getTotalReadCount, getTotalReadCount, getTotalReadCount, getTotalWriteCount, getTotalWriteCount, getTotalWriteCount, getWriteCount, getWriteCount, getWriteCount, isEnabled, reset, since, start, toMap
 

Method Detail

newGet

void newGet(Class<?> cls,
            boolean hit)
Record a new cache get.

Parameters:
cls - - The class describing the type that is contained in the cache.
hit - - true for a cache hit, false otherwise

newPut

void newPut(Class<?> cls)
Record a new cache put.

Parameters:
cls - - The class describing the type that is contained in the cache.

enable

void enable()
Enable statistics collection.


disable

void disable()
Disable statistics collection.



Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.