@Override public String getRegionName() { return region.getName(); }
@Override public String toString() { StringBuilder buf = new StringBuilder().append( "CacheRegionStatistics" ) .append( "[region=").append( region.getName() ) .append( ",hitCount=").append( this.hitCount ) .append( ",missCount=").append( this.missCount ) .append( ",putCount=").append( this.putCount ) .append( ",elementCountInMemory=" ).append( this.getElementCountInMemory() ) .append( ",elementCountOnDisk=" ).append( this.getElementCountOnDisk() ) .append( ",sizeInMemory=" ).append( this.getSizeInMemory() ) .append( ']' ); return buf.toString(); } }
public AbstractCacheableDataStatistics(Supplier<Region> regionSupplier) { final Region region = regionSupplier.get(); if ( region == null ) { this.cacheRegionName = null; this.cacheHitCount = null; this.cacheMissCount = null; this.cachePutCount = null; } else { this.cacheRegionName = region.getName(); this.cacheHitCount = new LongAdder(); this.cacheMissCount = new LongAdder(); this.cachePutCount = new LongAdder(); } }
ConcurrentSecondLevelCacheStatisticsImpl(Region region) { super( region.getName() ); this.region = region; }
ConcurrentSecondLevelCacheStatisticsImpl(Region region) { super( region.getName() ); this.region = region; }
@Override public String getRegionName() { return region.getName(); }
ConcurrentNaturalIdCacheStatisticsImpl(Region region) { super( region.getName() ); this.region = region; }
ConcurrentNaturalIdCacheStatisticsImpl(Region region) { super( region.getName() ); this.region = region; }
@Override public String toString() { StringBuilder buf = new StringBuilder().append( "CacheRegionStatistics" ) .append( "[region=").append( region.getName() ) .append( ",hitCount=").append( this.hitCount ) .append( ",missCount=").append( this.missCount ) .append( ",putCount=").append( this.putCount ) .append( ",elementCountInMemory=" ).append( this.getElementCountInMemory() ) .append( ",elementCountOnDisk=" ).append( this.getElementCountOnDisk() ) .append( ",sizeInMemory=" ).append( this.getSizeInMemory() ) .append( ']' ); return buf.toString(); } }
public AbstractCacheableDataStatistics(Supplier<Region> regionSupplier) { final Region region = regionSupplier.get(); if ( region == null ) { this.cacheRegionName = null; this.cacheHitCount = null; this.cacheMissCount = null; this.cachePutCount = null; } else { this.cacheRegionName = region.getName(); this.cacheHitCount = new LongAdder(); this.cacheMissCount = new LongAdder(); this.cachePutCount = new LongAdder(); } }