/** Ignore the delta value since the change isn't relevant for heap * related LRU since the counter reflects a percentage of used * memory. Normally the delta reflects either the number of * entries that changed for the <code>LRUCapacityController</code> * or the estimated amount of memory that has changed after * performing a Region operation. The * <code>HeapLRUCapacityController</code> however does not care * about <code>Region</code> changes, it only considers heap * changes and uses <code>Runtime</code> to determine how much to * evict. * @see com.gemstone.gemfire.internal.cache.lru.HeapLRUCapacityController#createLRUHelper * @see EnableLRU#mustEvict */ @Override final public void updateCounter( long delta ) { super.updateCounter(delta); }
/** Ignore the delta value since the change isn't relevant for heap * related LRU since the counter reflects a percentage of used * memory. Normally the delta reflects either the number of * entries that changed for the <code>LRUCapacityController</code> * or the estimated amount of memory that has changed after * performing a Region operation. The * <code>HeapLRUCapacityController</code> however does not care * about <code>Region</code> changes, it only considers heap * changes and uses <code>Runtime</code> to determine how much to * evict. * @see com.gemstone.gemfire.internal.cache.lru.HeapLRUCapacityController#createLRUHelper * @see EnableLRU#mustEvict */ @Override final public void updateCounter( long delta ) { super.updateCounter(delta); }
/** * update the running counter of all the entries * * @param delta Description of the Parameter */ protected final void changeTotalEntrySize(int delta) { if (_isOwnerALocalRegion()) { if (_getOwner() instanceof BucketRegion) { BucketRegion bucketRegion = (BucketRegion)_getOwner(); bucketRegion.updateCounter(delta); } } _getLruList().stats().updateCounter(delta); if (delta > 0 ) { if (logger.isTraceEnabled(LogMarker.LRU)) { logger.trace(LogMarker.LRU, "total lru size is now: {}", getTotalEntrySize() ); } } }
/** * update the running counter of all the entries * * @param delta Description of the Parameter */ protected final void changeTotalEntrySize(int delta) { if (_getOwnerObject() instanceof BucketRegion) { BucketRegion bucketRegion = (BucketRegion)_getOwnerObject(); bucketRegion.updateCounter(delta); } _getLruList().stats().updateCounter(delta); if ( debug && delta > 0 ) { debugLogging( "total lru size is now: " + getTotalEntrySize() ); } }
bucketRegion.updateCounter(change); stats.updateCounter(change); stats.updateCounter(change);
bucketRegion.updateCounter(change); stats.updateCounter(change); stats.updateCounter(change);