@Override protected long getLastModifiedTime() throws EntryNotFoundException { return getCheckedRegionEntry().getLastModified(); }
@Override protected long getLastModifiedTime() throws EntryNotFoundException { return getCheckedRegionEntry().getLastModified(); }
public long getLastModifiedTime() { checkEntryDestroyed(); return this.regionEntry.getLastModified(); }
public long getLastModifiedTime() { checkEntryDestroyed(); return this.regionEntry.getLastModified(); }
/** * Used internally by EntryExpiryTask. Ok for it to ignore transaction. */ long getLastModifiedTime(Object key) throws EntryNotFoundException { RegionEntry entry = this.entries.getEntry(key); if (entry == null) throw new EntryNotFoundException(key.toString()); return entry.getLastModified(); }
/** * Used internally by EntryExpiryTask. Ok for it to ignore transaction. */ long getLastModifiedTime(Object key) throws EntryNotFoundException { RegionEntry entry = this.entries.getEntry(key); if (entry == null) throw new EntryNotFoundException(key.toString()); return entry.getLastModified(); }
@Override public boolean isUpdateInProgress() { return updateInProgress || regionEntry.isUpdateInProgress() // The index update could have started just before the iterator was created. The entry still // needs to be re-evaluated in this case. || IndexManager.needsRecalculation(iteratorStartTime, regionEntry.getLastModified()); } }
/** * Create one of these in the local case so that we have a snapshot of the state * and can allow the bucket to move out from under us. */ public NonLocalRegionEntry(RegionEntry re, LocalRegion br, boolean allowTombstones) { this.key = re.getKey(); if (allowTombstones && re.isTombstone()) { // client get() operations need to see tombstone values this.value = Token.TOMBSTONE; } else { this.value = re.getValue(br); // OFFHEAP: copy into heap cd } Assert.assertTrue(this.value != Token.NOT_AVAILABLE, "getEntry did not fault value in from disk"); this.lastModified = re.getLastModified(); this.isRemoved = re.isRemoved(); VersionStamp stamp = re.getVersionStamp(); if (stamp != null) { this.versionTag = stamp.asVersionTag(); } }
/** * Create one of these in the local case so that we have a snapshot of the * state and can allow the bucket to move out from under us. */ protected NonLocalRegionEntry(RegionEntry re, LocalRegion br, boolean allowTombstones) { this.key = re.getKeyCopy(); // client get() operations need to see tombstone values if (allowTombstones && re.isTombstone()) { this.value = Token.TOMBSTONE; } else { this.value = re.getValue(br); // OFFHEAP: copy into heap cd } Assert.assertTrue(this.value != Token.NOT_AVAILABLE, "getEntry did not fault value in from disk"); this.lastModified = re.getLastModified(); this.isRemoved = re.isRemoved(); VersionStamp<?> stamp = re.getVersionStamp(); if (stamp != null) { this.versionTag = stamp.asVersionTag(); } }
entry.setLocalInvalid(); entry.setLastModified(rgn.getDistributionManager(), mapEntry .getLastModified());
if (re.isUpdateInProgress() || IndexManager.needsRecalculation(iteratorCreationTime, re.getLastModified())) { IndexInfo indexInfo = (IndexInfo) context .cacheGet(CompiledValue.INDEX_INFO);
} else { event.setOperation(Operation.UPDATE); event.setEntryLastModified(uncommitted.getLastModified()); event.setPutDML(true); final int oldSize = region.calculateRegionEntryValueSize(uncommitted);
tag = stamp.asVersionTag(); long lastModified = entry.getLastModified(); lastModifiedCacheTime = lastModified; isSer = o instanceof CachedDeserializable;
this.lastModified = re.getLastModified(); this.isRemoved = re.isRemoved(); VersionStamp<?> stamp = re.getVersionStamp();
entry.key = key; entry.setLocalInvalid(); entry.setLastModified(dm, mapEntry.getLastModified());
protected void copyRecoveredEntry(RegionEntry oldRe, RegionEntry newRe, LocalRegion owner, long dummyVersionTs) { long lastModifiedTime = oldRe.getLastModified(); if (lastModifiedTime != 0) { newRe.setLastModified(lastModifiedTime); } if (newRe.getVersionStamp() != null) { // [sjigyasu] Fixes #50794. // If the recovered entry does not have a version stamp and the newRe is // versioned, create a dummy version stamp. if (oldRe.getVersionStamp() == null) { VersionTag vt = createDummyTag(dummyVersionTs); newRe.getVersionStamp().setVersions(vt); } else { newRe.getVersionStamp().setVersions( oldRe.getVersionStamp().asVersionTag()); } } if (newRe instanceof AbstractOplogDiskRegionEntry) { AbstractOplogDiskRegionEntry newDe = (AbstractOplogDiskRegionEntry)newRe; newDe.setDiskIdForRegion(owner, oldRe); _getOwner().getDiskRegion().replaceIncompatibleEntry((DiskEntry) oldRe, newDe); } _getMap().put(newRe.getKey(), newRe); }
long lastModified = entry.getLastModified(); lastModifiedCacheTime = lastModified; if (eov instanceof CachedDeserializable) {
long lastModified = entry.getLastModified(); lastModifiedCacheTime = lastModified; if (eov instanceof CachedDeserializable) {
if (!posDup && owner.isInitialized()) { if (lastModifiedFromOrigin == -1 || lastModifiedFromOrigin != entry.getLastModified()) { throwEEE = true;
tag = stamp.asVersionTag(); long lastModified = entry.getLastModified(); lastModifiedCacheTime = lastModified; isSer = o instanceof CachedDeserializable;