@Override public void update(DiskEntry de) { if (pendingKrfTags != null && de.getVersionStamp() != null) { // Remember the version tag of the entry as it was written to the crf. pendingKrfTags.put(de, new CompactVersionHolder(de.getVersionStamp())); } }
public String toString() { StringBuilder s = new StringBuilder(); s.append("{v").append(getEntryVersion()); s.append("; rv").append(getRegionVersion()); if (this.memberID != null) { s.append("; mbr=").append(this.memberID); } if (this.distributedSystemId >= 0) { s.append("; ds=").append(this.distributedSystemId); } s.append("; time=").append(getVersionTimeStamp()); s.append("}"); return s.toString(); }
@Override public String toString() { String v = super.toString(); StringBuilder sb = new StringBuilder(); sb.append("(").append(entry.getKey()).append("; ") .append(region.getName()).append("; ").append(v) .append(")"); return sb.toString(); } }
public VersionTag asVersionTag() { VersionTag tag = VersionTag.create(memberID); tag.setEntryVersion(getEntryVersion()); tag.setRegionVersion(this.regionVersionHighBytes, this.regionVersionLowBytes); tag.setVersionTimeStamp(getVersionTimeStamp()); tag.setDistributedSystemId(this.distributedSystemId); return tag; }
public VersionTag asVersionTag() { VersionTag tag = VersionTag.create(memberID); tag.setEntryVersion(getEntryVersion()); tag.setRegionVersion(this.regionVersionHighBytes, this.regionVersionLowBytes); tag.setVersionTimeStamp(getVersionTimeStamp()); tag.setDistributedSystemId(this.distributedSystemId); return tag; }
public String toString() { StringBuilder s = new StringBuilder(); s.append("{v").append(getEntryVersion()); s.append("; rv").append(getRegionVersion()); if (this.memberID != null) { s.append("; mbr=").append(this.memberID); } if (this.distributedSystemId >= 0) { s.append("; ds=").append(this.distributedSystemId); } s.append("; time=").append(getVersionTimeStamp()); s.append("}"); return s.toString(); }
@Override public void update(DiskEntry de) { if(pendingKrfTags != null && de.getVersionStamp() != null) { //Remember the version tag of the entry as it was written to the crf. pendingKrfTags.put(de, new CompactVersionHolder(de.getVersionStamp())); } }
@Override public String toString() { String v = super.toString(); StringBuilder sb = new StringBuilder(); sb.append("(").append(entry.getKeyCopy()).append("; ") .append(region.getName()).append("; ").append(v) .append(")"); return sb.toString(); } }
@Override public void replaceLive(DiskEntry old, DiskEntry de) { synchronized (liveEntries) { this.liveEntries.replace(old, de); if (pendingKrfTags != null && de.getVersionStamp() != null) { // Remember the version tag of the entry as it was written to the crf. pendingKrfTags.remove(old); pendingKrfTags.put(de, new CompactVersionHolder(de.getVersionStamp())); } } }
@Override public void replaceLive(DiskEntry old, DiskEntry de) { synchronized (liveEntries) { this.liveEntries.replace(old, de); if (pendingKrfTags != null && de.getVersionStamp() != null) { // Remember the version tag of the entry as it was written to the crf. pendingKrfTags.remove(old); pendingKrfTags.put(de, new CompactVersionHolder(de.getVersionStamp())); } } }
@Override public void addLive(DiskEntry de) { synchronized (liveEntries) { this.liveEntries.insert(de); if (pendingKrfTags != null && de.getVersionStamp() != null) { // Remember the version tag of the entry as it was written to the crf. pendingKrfTags.put(de, new CompactVersionHolder(de.getVersionStamp())); } } }
@Override public void addLive(DiskEntry de) { synchronized(liveEntries) { this.liveEntries.insert(de); if(pendingKrfTags != null && de.getVersionStamp() != null) { //Remember the version tag of the entry as it was written to the crf. pendingKrfTags.put(de, new CompactVersionHolder(de.getVersionStamp())); } } }