Class CacheStatisticsImpl

java.lang.Object
org.apache.openjpa.datacache.CacheStatisticsImpl
All Implemented Interfaces:
Serializable, CacheStatistics, CacheStatisticsSPI

public class CacheStatisticsImpl extends Object implements CacheStatisticsSPI
The default CacheStatistics(SPI) implementation.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the types that are known to this cache being tracked.
    void
    Disable statistics collection.
    void
    SPI implementation
    long
    Gets number of total read requests that has been found in cache since last reset.
    long
    Gets number of total read requests that has been found in cache for the given class since last reset.
    long
    Gets number of total read requests that has been found in cache for the given class since last reset.
    long
    Gets number of total read requests since last reset.
    long
    Gets number of total read requests for the given class since last reset.
    long
    Gets number of total read requests for the given class since last reset.
    long
    Gets number of total read requests that has been found in cache since start.
    long
    Gets number of total read requests that has been found in cache for the given class since start.
    long
    Gets number of total read requests that has been found in cache for the given class since start.
    long
    Gets number of total read requests since start.
    long
    Gets number of total read requests for the given class since start.
    long
    Gets number of total read requests for the given class since start.
    long
    Gets number of total write requests since start.
    long
    Gets number of total write requests for the given class since start.
    long
    Gets number of total write requests for the given class since start.
    long
    Gets number of total write requests since last reset.
    long
    Gets number of total write requests for the given class since last reset.
    long
    Gets number of total write requests for the given class since last reset.
    boolean
    Returns whether or not statistics will be collected.
    void
    newGet(Class<?> cls, boolean hit)
    Record a new cache get.
    void
    newGet(Object oid, boolean hit)
     
    void
    newPut(Class<?> cls)
    Record a new cache put.
    void
     
    void
    Clears all accumulated statistics.
    Gets the time of last reset.
    Gets the time of start.
    Map<String,long[]>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CacheStatisticsImpl

      public CacheStatisticsImpl()
  • Method Details