protected StringBuilder getStringBuilder() { StringBuilder buf = new StringBuilder(); buf.append(getClass().getName()); buf.append("[path='") .append(getFullPath()) .append("';scope=") .append(getScope()) .append("';dataPolicy=") .append(this.dataPolicy); if (this.concurrencyChecksEnabled) { buf.append("; concurrencyChecksEnabled"); } return buf; }
String getRegionName() { return this.leftOperand.getRegion().getFullPath(); }
String getRegionName() { return this.leftOperand.getRegion().getFullPath(); }
String getRegionName() { return this.leftOperand.getRegion().getFullPath(); }
protected StringBuilder getStringBuilder() { final StringBuilder buf = new StringBuilder(); buf.append(getClass().getName()); buf.append("[path='") .append(getFullPath()) .append("';scope=") .append(getScope()) .append("';dataPolicy=") .append(this.dataPolicy); if (this.enableGateway){ buf.append("; gatewayEnabled"); } if (this.concurrencyChecksEnabled) { buf.append("; concurrencyChecksEnabled"); } return buf; }
/** ********************* CacheStatistics ******************************** */ public CacheStatistics getStatistics() { // prefer region destroyed exception over statistics disabled exception checkReadiness(); if (!this.statisticsEnabled) { throw new StatisticsDisabledException(LocalizedStrings.AbstractRegion_STATISTICS_DISABLED_FOR_REGION_0.toLocalizedString(getFullPath())); } return this; }
/** ********************* CacheStatistics ******************************** */ public CacheStatistics getStatistics() { // prefer region destroyed exception over statistics disabled exception checkReadiness(); if (!this.statisticsEnabled) { throw new StatisticsDisabledException(LocalizedStrings.AbstractRegion_STATISTICS_DISABLED_FOR_REGION_0.toLocalizedString(getFullPath())); } return this; }
throw new IllegalArgumentException( LocalizedStrings.AbstractRegion_NO_CUSTOM_EVICTION_SET .toLocalizedString(getFullPath()));
/** * {@inheritDoc} */ @Override public CustomEvictionAttributes setCustomEvictionAttributes(long newStart, long newInterval) { checkReadiness(); if (this.customEvictionAttributes == null) { throw new IllegalArgumentException( LocalizedStrings.AbstractRegion_NO_CUSTOM_EVICTION_SET .toLocalizedString(getFullPath())); } if (newStart == 0) { newStart = this.customEvictionAttributes.getEvictorStartTime(); } this.customEvictionAttributes = new CustomEvictionAttributesImpl( this.customEvictionAttributes.getCriteria(), newStart, newInterval, newStart == 0 && newInterval == 0); if (this.evService == null) { initilializeCustomEvictor(); } else {// we are changing the earlier one which is already started. EvictorService service = getEvictorTask(); service.changeEvictionInterval(newInterval); if (newStart != 0) service.changeStartTime(newStart); } return this.customEvictionAttributes; }
public EvictorService getEvictorTask() { if (this.evService == null && (getCustomEvictionAttributes() != null) && !getCustomEvictionAttributes().isEvictIncoming()) { LogWriterI18n logger = getSystem().getLogWriter() .convertToLogWriterI18n(); if (logger.fineEnabled()) { logger .fine("LocalRegion.creating EvictorService " + this.getFullPath()); } this.evService = new EvictorService(getCustomEvictionAttributes() .getCriteria(), getCustomEvictionAttributes().getEvictorStartTime(), getCustomEvictionAttributes().getEvictorInterval(), TimeUnit.MILLISECONDS, this); if (logger.fineEnabled()) { logger.fine("LocalRegion.created EvictorService " + this.getFullPath()); } } return this.evService; }