@Override public boolean isStatisticsEnabled() { return cacheConfig.isStatisticsEnabled(); }
@Override public boolean isStatisticsEnabled() { return cacheConfig.isStatisticsEnabled(); }
public CacheEntryProcessorEntry(Data keyData, R record, AbstractCacheRecordStore cacheRecordStore, long now, int completionId) { this.keyData = keyData; this.record = record; this.cacheRecordStore = cacheRecordStore; this.now = now; this.completionId = completionId; this.start = cacheRecordStore.cacheConfig.isStatisticsEnabled() ? System.nanoTime() : 0; final Factory<ExpiryPolicy> expiryPolicyFactory = cacheRecordStore.cacheConfig.getExpiryPolicyFactory(); this.expiryPolicy = expiryPolicyFactory.create(); }
public CacheEntryProcessorEntry(Data keyData, R record, AbstractCacheRecordStore cacheRecordStore, long now, int completionId) { this.keyData = keyData; this.record = record; this.cacheRecordStore = cacheRecordStore; this.now = now; this.completionId = completionId; this.start = cacheRecordStore.cacheConfig.isStatisticsEnabled() ? System.nanoTime() : 0; final Factory<ExpiryPolicy> expiryPolicyFactory = cacheRecordStore.cacheConfig.getExpiryPolicyFactory(); this.expiryPolicy = expiryPolicyFactory.create(); }
protected AbstractClientCacheProxyBase(CacheConfig<K, V> cacheConfig, ClientContext context) { super(ICacheService.SERVICE_NAME, cacheConfig.getName(), context); this.name = cacheConfig.getName(); this.nameWithPrefix = cacheConfig.getNameWithPrefix(); this.cacheConfig = cacheConfig; this.statisticsEnabled = cacheConfig.isStatisticsEnabled(); }
protected AbstractClientCacheProxyBase(CacheConfig<K, V> cacheConfig, ClientContext context) { super(ICacheService.SERVICE_NAME, cacheConfig.getName(), context); this.name = cacheConfig.getName(); this.nameWithPrefix = cacheConfig.getNameWithPrefix(); this.cacheConfig = cacheConfig; this.statisticsEnabled = cacheConfig.isStatisticsEnabled(); }
System.out.println("value type: " + cacheConfig.getValueType()); System.out.println("statistics enabled: " + cacheConfig.isStatisticsEnabled()); System.out.println("management enabled: " + cacheConfig.isManagementEnabled());
@Override public CacheConfig putCacheConfigIfAbsent(CacheConfig config) { // ensure all configs registered in CacheService are not PreJoinCacheConfig's CacheConfig cacheConfig = asCacheConfig(config); CacheConfig localConfig = configs.putIfAbsent(cacheConfig.getNameWithPrefix(), cacheConfig); if (localConfig == null) { if (cacheConfig.isStatisticsEnabled()) { setStatisticsEnabled(cacheConfig, cacheConfig.getNameWithPrefix(), true); } if (cacheConfig.isManagementEnabled()) { setManagementEnabled(cacheConfig, cacheConfig.getNameWithPrefix(), true); } } if (localConfig == null) { logger.info("Added cache config: " + cacheConfig); } return localConfig; }
@Override public CacheConfig putCacheConfigIfAbsent(CacheConfig config) { // ensure all configs registered in CacheService are not PreJoinCacheConfig's CacheConfig cacheConfig = asCacheConfig(config); CacheConfig localConfig = configs.putIfAbsent(cacheConfig.getNameWithPrefix(), cacheConfig); if (localConfig == null) { if (cacheConfig.isStatisticsEnabled()) { setStatisticsEnabled(cacheConfig, cacheConfig.getNameWithPrefix(), true); } if (cacheConfig.isManagementEnabled()) { setManagementEnabled(cacheConfig, cacheConfig.getNameWithPrefix(), true); } } if (localConfig == null) { logger.info("Added cache config: " + cacheConfig); } return localConfig; }
final boolean isStatisticsEnabled = cacheRecordStore.cacheConfig.isStatisticsEnabled(); final CacheStatisticsImpl statistics = cacheRecordStore.statistics;
final boolean isStatisticsEnabled = cacheRecordStore.cacheConfig.isStatisticsEnabled(); final CacheStatisticsImpl statistics = cacheRecordStore.statistics;
out.writeBoolean(config.isStoreByValue()); out.writeBoolean(config.isManagementEnabled()); out.writeBoolean(config.isStatisticsEnabled()); out.writeBoolean(config.getHotRestartConfig().isEnabled()); out.writeBoolean(config.getHotRestartConfig().isFsync());
out.writeBoolean(config.isStoreByValue()); out.writeBoolean(config.isManagementEnabled()); out.writeBoolean(config.isStatisticsEnabled()); out.writeBoolean(config.getHotRestartConfig().isEnabled()); out.writeBoolean(config.getHotRestartConfig().isFsync());
ICacheService cacheService = getCacheService(); for (CacheConfig cacheConfig : cacheService.getCacheConfigs()) { if (cacheConfig.isStatisticsEnabled()) { CacheStatistics statistics = cacheService.getStatistics(cacheConfig.getNameWithPrefix());
ICacheService cacheService = getCacheService(); for (CacheConfig cacheConfig : cacheService.getCacheConfigs()) { if (cacheConfig.isStatisticsEnabled()) { CacheStatistics statistics = cacheService.getStatistics(cacheConfig.getNameWithPrefix());
if (cacheConfig.isStatisticsEnabled()) { statistics = cacheService.createCacheStatIfAbsent(cacheNameWithPrefix);
if (cacheConfig.isStatisticsEnabled()) { statistics = cacheService.createCacheStatIfAbsent(cacheNameWithPrefix);
target.setQuorumName(getQuorumName()); target.setReadThrough(isReadThrough()); target.setStatisticsEnabled(isStatisticsEnabled()); target.setStoreByValue(isStoreByValue()); target.setUriString(getUriString());
target.setQuorumName(getQuorumName()); target.setReadThrough(isReadThrough()); target.setStatisticsEnabled(isStatisticsEnabled()); target.setStoreByValue(isStoreByValue()); target.setUriString(getUriString());