public ContainsKeyBulkExecutorMessage(ContainsKeyBulkExecutorMessage other) { super(other); this.inKeys = other.inKeys; this.inRoutingObjects = other.inRoutingObjects; this.pr = other.pr; this.prId = other.prId; this.regionPath = region.getFullPath(); this.routingObjects = other.routingObjects; this.membersToBucketIds = other.membersToBucketIds; this.keysToBucketIds = other.keysToBucketIds; this.member = other.member; }
public ContainsKeyBulkExecutorMessage(ContainsKeyBulkExecutorMessage other) { super(other); this.inKeys = other.inKeys; this.inRoutingObjects = other.inRoutingObjects; this.pr = other.pr; this.prId = other.prId; this.regionPath = region.getFullPath(); this.routingObjects = other.routingObjects; this.membersToBucketIds = other.membersToBucketIds; this.keysToBucketIds = other.keysToBucketIds; this.member = other.member; }
@Override public String toString() { return "TableQueryInfo: region=" + (this.region != null ? this.region.getFullPath() : "(null)"); }
/** * Returns whether this event is on the PDX type region. * @return whether this event is on the PDX type region */ public boolean isOnPdxTypeRegion() { return PeerTypeRegistration.REGION_FULL_PATH.equals(this.region.getFullPath()); }
private ClientTombstoneMessage(TOperation op, LocalRegion region, Object removalInformation, EventID eventId) { super(EnumListenerEvent.AFTER_TOMBSTONE_EXPIRATION, null, eventId); this.op = op; this.removalInformation = removalInformation; setRegionName(region.getFullPath()); // fix for bug #45962 - tombstone message must have the region name }
public void invalidate(EntryEventImpl event) { //recordTXOperation(ServerRegionOperation.INVALIDATE, event.getKey(), event); InvalidateOp.execute(this.pool, this.region.getFullPath(), event); }
public synchronized <T extends PersistedEventImpl> void addOrganizer( int bucketId, HoplogOrganizer<T> organizer) { if (bucketOrganizerMap.containsKey(bucketId)) { throw new IllegalArgumentException(); } if (logger.fineEnabled()) { logger.fine("added pre constructed organizer " + region.getFullPath() + ":" + bucketId + " " + organizer); } bucketOrganizerMap.put(bucketId, organizer); }
@Override public final String toString() { return ArrayUtils.objectRefString(this) + ",valid=" + this.isValid + ",dataRegion=" + this.region.getFullPath() + ',' + this.txState.txId.shortToString() + ",TXState@0x" + Integer.toHexString(System.identityHashCode(txState)); }
private static String getGraphNameFromOwner(Object owner, Object key) { String ownerName; if(owner instanceof LocalRegion) { ownerName = ((LocalRegion) owner).getFullPath(); } else if (owner instanceof PlaceHolderDiskRegion) { ownerName = ((PlaceHolderDiskRegion) owner).getName(); } else { ownerName = owner.toString(); } return getGraphName(ownerName, key); }
/** must be holding destroy lock */ void reinitialize_destroy(RegionEventImpl event) throws CacheWriterException, TimeoutException { final boolean cacheWrite = !event.originRemote; // register this region as reinitializing this.cache.regionReinitializing(getFullPath()); basicDestroyRegion(event, cacheWrite, false/* lock */, true); }
private void throwLowMemoryException(final Object key) throws LowMemoryException { Set<DistributedMember> htrm = getMemoryThresholdReachedMembers(); Object[] prms = new Object[] { getFullPath(), key, htrm }; throw new LowMemoryException(LocalizedStrings .ResourceManager_LOW_MEMORY_IN_0_FOR_PUT_1_MEMBER_2 .toLocalizedString(prms), htrm); }
public void invalidate(EntryEventImpl event) { recordTXOperation(ServerRegionOperation.INVALIDATE, event.getKey(), event); InvalidateOp.execute(this.pool, this.region.getFullPath(), event); }
protected long calculateEntryOverhead(RegionEntry entry) { if (entryOverHead == -1L && !this.reservedTable() && needAccounting()) { synchronized (this) { if (entryOverHead == -1L) { entryOverHead = getEntryOverhead(entry); memTrace("Entry overhead for " + getFullPath() + " = " + entryOverHead); } } } return entryOverHead; }
public GetEntryOpImpl(LocalRegion region, Object key) { super(MessageType.GET_ENTRY, 2); this.region = region; this.key = key; getMessage().addStringPart(region.getFullPath()); getMessage().addStringOrObjPart(key); }
public GetEntryOpImpl(LogWriterI18n loggerI18n, LocalRegion region, Object key) { super(loggerI18n, MessageType.GET_ENTRY, 2); this.region = region; this.key = key; getMessage().addStringPart(region.getFullPath()); getMessage().addStringOrObjPart(key); }
public CacheStatistics getStatistics() throws StatisticsDisabledException { checkEntryDestroyed(); if (!regionEntry.hasStats() || !region.statisticsEnabled) { throw new StatisticsDisabledException(LocalizedStrings.PartitionedRegion_STATISTICS_DISABLED_FOR_REGION_0.toLocalizedString(region.getFullPath())); } return new CacheStatisticsImpl(this.regionEntry, region); }
public CacheStatistics getStatistics() throws StatisticsDisabledException { checkEntryDestroyed(); if (!regionEntry.hasStats() || !region.statisticsEnabled) { throw new StatisticsDisabledException(LocalizedStrings.PartitionedRegion_STATISTICS_DISABLED_FOR_REGION_0.toLocalizedString(region.getFullPath())); } return new CacheStatisticsImpl(this.regionEntry, region); }
protected final void releaseAfterGetInitialImageLatch() { LogWriterI18n logger = getCache().getLoggerI18n(); if (logger.fineEnabled()) { logger.fine("Releasing Initialization Latch (after initial image) for " + getFullPath()); } releaseLatch(this.initializationLatchAfterGetInitialImage); }
/** Return true if this region is initializing */ final boolean isGlobalRegionInitializing(LocalRegion region) { boolean result = region != null && region.scope.isGlobal() && !region.isInitialized(); if (result) { LogWriterI18n logger = getLoggerI18n(); if (logger.fineEnabled()) { logger.fine("GemFireCache.isGlobalRegionInitializing (" + region.getFullPath() + ")"); } } return result; }
public CacheStatistics getStatistics() { // prefer entry destroyed exception over statistics disabled exception this.basicGetEntry(); if (!LocalRegion.this.statisticsEnabled) { throw new StatisticsDisabledException(LocalizedStrings.LocalRegion_STATISTICS_DISABLED_FOR_REGION_0.toLocalizedString(getFullPath())); } return new CacheStatisticsImpl(this.basicGetEntry(), LocalRegion.this); }