public void onEntryCreation ( String template , int source ) { final String methodName = "onEntryCreation()" ; CacheStatsModule csm = null ; if ( ( csm = getCSM ( template ) ) == null ) { return ; } if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , methodName + " cacheName=" + _sCacheName + " template=" + template + " source=" + source + " enable=" + csm . _enable + " " + this ) ; if ( csm . _enable ) { if ( source == REMOTE ) { if ( csm . _remoteCreationCount != null ) csm . _remoteCreationCount . increment ( ) ; } if ( csm . _inMemoryAndDiskCacheEntryCount != null ) csm . _inMemoryAndDiskCacheEntryCount . increment ( ) ; } return ; }
Updates statistics for the cache entry creation case .