@Override public int calculateValueSize(Object val) { if (!this.isInternalRegion() && callback.isSnappyStore()) { return calcMemSize(val); } else { return 0; } }
@Override public int calculateRegionEntryValueSize(RegionEntry re) { if (!this.isInternalRegion() && callback.isSnappyStore()) { return calcMemSize(re._getValue()); } else { return 0; } }
ReplyMessage.send(getSender(), this.processorId, new ReplyException( new FunctionException(LocalizedStrings.ExecuteFunction_FUNCTION_NAMED_0_IS_NOT_REGISTERED .toLocalizedString(this.functionName))), dm, r.isInternalRegion()); new FunctionException( LocalizedStrings.ExecuteFunction_THE_FUNCTION_0_DID_NOT_SENT_LAST_RESULT .toString(functionObject.getId()))), dm, r.isInternalRegion()); return false; ReplyMessage.send(getSender(), this.processorId, new ReplyException( "Operation got interrupted due to shutdown in progress on remote VM", e), dm, r.isInternalRegion()); return false; } catch (CancelException sde) { new ForceReattemptException( "Operation got interrupted due to shutdown in progress on remote VM", sde)), dm, r.isInternalRegion()); return false;
&& needsOldValueInCacheOp.isEmpty() && cachelessNodes.isEmpty()) { if (mgr.getNormalDistributionManagerIds().size() > 1) { if (region.isInternalRegion()) {
/** * Used to bootstrap txState. * @param key * @return distributedRegions, * member with parimary bucket for partitionedRegions */ @Override public DistributedMember getOwnerForKey(KeyInfo key) { //Asif: fix for sqlfabric bug 42266 assert !this.isInternalRegion() || this.isMetaRegionWithTransactions(); if (!this.getAttributes().getDataPolicy().withStorage() || (this.concurrencyChecksEnabled && this.getAttributes() .getDataPolicy() == DataPolicy.NORMAL)) { // execute on random replicate return getRandomReplicate(); } // if we are non-persistent, forward transactions to // a persistent member if (this.concurrencyChecksEnabled && !generateVersionTag) { return getRandomPersistentReplicate(); } return super.getOwnerForKey(key); }
&& needsOldValueInCacheOp.isEmpty() && cachelessNodes.isEmpty()) { if (logger.fineEnabled() && mgr.getNormalDistributionManagerIds().size() > 1) { if (region.isInternalRegion()) { if (logger.finerEnabled()) {
.ExecuteFunction_FUNCTION_NAMED_0_IS_NOT_REGISTERED .toLocalizedString(this.functionName))), dm, this, r.isInternalRegion()); return false; .ExecuteFunction_THE_FUNCTION_0_DID_NOT_SENT_LAST_RESULT .toString(functionObject.getId()))), dm, this, r.isInternalRegion()); return false; new ForceReattemptException("Operation got interrupted due to " + "shutdown in progress on remote VM", sde)), dm, this, r.isInternalRegion()); return false;
if (!isInternalRegion()) { if (!this.isDestroyed) { cache.getResourceManager().addResourceListener(ResourceType.MEMORY, this);
&& !isInternalRegion() && !attrs.getScope().isAck() && !doesNotDistribute() && attrs.getDataPolicy().withStorage()) { logger.warn(LocalizedMessage.create(LocalizedStrings.DistributedRegion_REGION_0_1_SPLITBRAIN_CONFIG_WARNING, new Object[] { regionName, attrs.getScope() }));
&& !isInternalRegion() && !attrs.getScope().isAck() && !doesNotDistribute() && attrs.getDataPolicy().withStorage()) { this.cache.getLoggerI18n().warning( LocalizedStrings.DistributedRegion_REGION_0_1_SPLITBRAIN_CONFIG_WARNING,
if (!isInternalRegion()) { if (!this.isDestroyed) { cache.getResourceManager().addResourceListener(ResourceType.MEMORY, this);