Keel 2.1RC2

examples.caching
Class CacheStatistics

java.lang.Object
  extended byexamples.caching.CacheStatistics

public class CacheStatistics
extends java.lang.Object

Author:

Field Summary
private static java.util.Map s_cacheInvocations
           
private static java.util.Map s_methodInvocations
           
 
Constructor Summary
CacheStatistics()
           
 
Method Summary
static void addCacheInvocation(java.lang.String methodName, java.lang.Class[] parameterTypes)
           
static void addMethodInvocation(java.lang.String methodName, java.lang.Class[] parameterTypes)
           
private static java.lang.Long calculateHash(java.lang.String methodName, java.lang.Class[] parameterTypes)
           
static int getNrOfCacheInvocationsFor(java.lang.String methodName, java.lang.Class[] parameterTypes)
           
static int getNrOfMethodInvocationsFor(java.lang.String methodName, java.lang.Class[] parameterTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_methodInvocations

private static java.util.Map s_methodInvocations

s_cacheInvocations

private static java.util.Map s_cacheInvocations
Constructor Detail

CacheStatistics

public CacheStatistics()
Method Detail

addMethodInvocation

public static void addMethodInvocation(java.lang.String methodName,
                                       java.lang.Class[] parameterTypes)

addCacheInvocation

public static void addCacheInvocation(java.lang.String methodName,
                                      java.lang.Class[] parameterTypes)

getNrOfMethodInvocationsFor

public static int getNrOfMethodInvocationsFor(java.lang.String methodName,
                                              java.lang.Class[] parameterTypes)

getNrOfCacheInvocationsFor

public static int getNrOfCacheInvocationsFor(java.lang.String methodName,
                                             java.lang.Class[] parameterTypes)

calculateHash

private static java.lang.Long calculateHash(java.lang.String methodName,
                                            java.lang.Class[] parameterTypes)

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.