/** * Gets the cacheName attribute of the Cache object. This is also known as the region name. * <p> * @return The cacheName value */ @Override public String getCacheName() { return cacheAttr.getCacheName(); }
/** * Returns the cache (aka "region") name. * <p> * @return The cacheName value */ public String getCacheName() { String attributeCacheName = this.cacheAttributes.getCacheName(); if(attributeCacheName != null) return attributeCacheName; return cacheName; }
/** * Gets the cacheName attribute of the Cache object. This is also known as the region name. * <p> * @return The cacheName value */ @Override public String getCacheName() { return cacheAttr.getCacheName(); }
/** * Returns the cache (aka "region") name. * <p> * @return The cacheName value */ public String getCacheName() { String attributeCacheName = this.cacheAttributes.getCacheName(); if(attributeCacheName != null) { return attributeCacheName; } return cache.getCacheName(); }
/** * Constructor for the Cache object * <p> * @param cattr The cache attribute * @param attr The default element attributes */ public CompositeCache( ICompositeCacheAttributes cattr, IElementAttributes attr ) { this.attr = attr; this.cacheAttr = cattr; createMemoryCache( cattr ); if ( log.isInfoEnabled() ) { log.info( "Constructed cache with name [" + cacheAttr.getCacheName() + "] and cache attributes " + cattr ); } }
/** * Constructor for the Cache object * <p> * @param cattr The cache attribute * @param attr The default element attributes */ public CompositeCache( ICompositeCacheAttributes cattr, IElementAttributes attr ) { this.attr = attr; this.cacheAttr = cattr; this.alive = new AtomicBoolean(true); this.updateCount = new AtomicInteger(0); this.removeCount = new AtomicInteger(0); this.hitCountRam = new AtomicInteger(0); this.hitCountAux = new AtomicInteger(0); this.missCountNotFound = new AtomicInteger(0); this.missCountExpired = new AtomicInteger(0); createMemoryCache( cattr ); if ( log.isInfoEnabled() ) { log.info( "Constructed cache with name [" + cacheAttr.getCacheName() + "] and cache attributes " + cattr ); } }
cache = (CompositeCache<K, V>) caches.get( cattr.getCacheName() ); cache = (CompositeCache<K, V>) caches.get( cattr.getCacheName() ); cache = configurator.parseRegion( this.getConfigurationProperties(), this, cattr.getCacheName(), this.defaultAuxValues, cattr ); caches.put( cattr.getCacheName(), cache );
cache = (CompositeCache<K, V>) caches.get( cattr.getCacheName() ); if ( cache == null ) cattr.setCacheName( cattr.getCacheName() ); cache = configurator.parseRegion( this.getConfigurationProperties(), cattr.getCacheName(), this.defaultAuxValues, cattr ); caches.put( cattr.getCacheName(), cache );
log.debug( cacheAttr.getCacheName() + " - Memory cache hit, but element expired" ); log.debug( cacheAttr.getCacheName() + " - Memory cache hit" );
log.debug( cacheAttr.getCacheName() + " - " + ( keys.size() - elements.size() ) + " Misses" );
log.debug( cacheAttr.getCacheName() + " - " + ( keys.size() - elements.size() ) + " Misses" );
log.debug( cacheAttr.getCacheName() + " - Memory cache hit, but element expired" ); log.debug( cacheAttr.getCacheName() + " - Memory cache hit" );
log.debug( cacheAttr.getCacheName() + " - Aux cache[" + i + "] hit, but element expired." ); log.debug( cacheAttr.getCacheName() + " - Aux cache[" + i + "] hit" );
log.debug( cacheAttr.getCacheName() + " - Aux cache[" + aux.getCacheName() + "] hit, but element expired." ); log.debug( cacheAttr.getCacheName() + " - Aux cache[" + aux.getCacheName() + "] hit" );
log.debug( "Called save for [" + cacheAttr.getCacheName() + "]" );
log.debug( "Called save for [" + cacheAttr.getCacheName() + "]" );
log.info( "In DISPOSE, [" + this.cacheAttr.getCacheName() + "] fromRemote [" + fromRemote + "]" ); log.info( "In DISPOSE, [" + this.cacheAttr.getCacheName() + "] SKIPPING auxiliary [" + aux.getCacheName() + "] fromRemote [" + fromRemote + "]" ); log.info( "In DISPOSE, [" + this.cacheAttr.getCacheName() + "] auxiliary [" + aux.getCacheName() + "]" ); log.info( "In DISPOSE, [" + this.cacheAttr.getCacheName() + "] put " + numToFree + " into auxiliary " + aux.getCacheName() ); log.info( "In DISPOSE, [" + this.cacheAttr.getCacheName() + "] disposing of memory cache." );
log.info( "In DISPOSE, [" + this.cacheAttr.getCacheName() + "] fromRemote [" + fromRemote + "]" ); log.info( "In DISPOSE, [" + this.cacheAttr.getCacheName() + "] SKIPPING auxiliary [" + aux.getCacheName() + "] fromRemote [" + fromRemote + "]" ); log.info( "In DISPOSE, [" + this.cacheAttr.getCacheName() + "] auxiliary [" + aux.getCacheName() + "]" ); log.info( "In DISPOSE, [" + this.cacheAttr.getCacheName() + "] put " + numToFree + " into auxiliary " + aux.getCacheName() ); log.info( "In DISPOSE, [" + this.cacheAttr.getCacheName() + "] disposing of memory cache." );
log.debug( cacheAttr.getCacheName() + " - Memory cache hit, but element expired" ); log.debug( cacheAttr.getCacheName() + " - Memory cache hit" ); log.debug( cacheAttr.getCacheName() + " - Aux cache[" + i + "] hit, but element expired." ); log.debug( cacheAttr.getCacheName() + " - Aux cache[" + i + "] hit" ); log.debug( cacheAttr.getCacheName() + " - Miss" );
log.debug( cacheAttr.getCacheName() + " - Memory cache hit, but element expired" ); log.debug( cacheAttr.getCacheName() + " - Memory cache hit" ); log.debug( cacheAttr.getCacheName() + " - Aux cache[" + aux.getCacheName() + "] hit, but element expired." ); log.debug( cacheAttr.getCacheName() + " - Aux cache[" + aux.getCacheName() + "] hit" ); log.debug( cacheAttr.getCacheName() + " - Miss" );