@Override public String toString() { final StringBuilder sb = new StringBuilder(); ArrayUtils.objectRefString(this, sb); sb.append(": op=").append(this.op); sb.append(", destroy=").append(this.destroy); sb.append(", bulkOp=").append(this.bulkOp); sb.append(", key=").append(this.regionKey); if (this.pendingDelta != null) { sb.append(", pendingDelta=").append(this.pendingDelta); } if (this.pendingValue != null) { sb.append(", pendingValue="); ArrayUtils.objectStringNonRecursive(this.pendingValue, sb); } if (isPendingForBatch()) { sb.append(", pendingFullValueForBatch=").append( isPendingFullValueForBatch()); sb.append(", pendingDeltaForBatch=").append(isPendingDeltaForBatch()); } sb.append(", originalValue="); ArrayUtils.objectStringNonRecursive(this.originalVersionId, sb); sb.append(", callbackArg=").append(getCallbackArgument()); sb.append(", txId=").append(getTXId()); sb.append(", regionEntry=").append(this.regionEntry); if (this.regionEntry != null) { sb.append(", isMarkedForEviction=").append(this.regionEntry.isMarkedForEviction()); } return sb.toString(); }
public String shortToString(boolean skipValues) { final StringBuilder sb = new StringBuilder(); ArrayUtils.objectRefString(this, sb); sb.append(": op=").append(this.op); sb.append(", destroy=").append(this.destroy); sb.append(", bulkOp=").append(this.bulkOp); sb.append(", key=").append(this.regionKey); if (this.pendingDelta != null) { sb.append(", pendingDelta=").append(this.pendingDelta); } if (skipValues) { return sb.toString(); } if (this.pendingValue != null) { sb.append(", pendingValue="); ArrayUtils.objectRefString(this.pendingValue, sb); } if (isPendingForBatch()) { sb.append(", pendingFullValueForBatch=").append( isPendingFullValueForBatch()); sb.append(", pendingDeltaForBatch=").append(isPendingDeltaForBatch()); } sb.append(", originalValue="); ArrayUtils.objectRefString(this.originalVersionId, sb); sb.append(", callbackArg=").append(getCallbackArgument()); sb.append(", ").append(getTXId().shortToString()); sb.append(", regionEntry="); ArrayUtils.objectRefString(this.regionEntry, sb); return sb.toString(); }
/** * Creates a local tx entry event */ TxEntryEventImpl(LocalRegion r, Object key) { //TODO:ASIF :Check if the eventID should be created. Currently not // creating it super(r, getNearSideOperation(), key, getNearSidePendingValue(),TXEntryState.this.getCallbackArgument(), false, r.getMyId() , true/* generateCallbacks */, true /*initializeId*/); }
private final void txApplyInvalidateLocally(LocalRegion r, Object key, Object newValue, boolean didDestroy, TXState txState, TXRegionState txr, EntryEventImpl cbEvent) { try { r.txApplyInvalidate(this.regionEntry, txState, key, newValue, didDestroy, isOpLocalInvalidate() ? true : false, getNearSideEventId(txState), getCallbackArgument(), txState.getPendingCallbacks(), null, null, null, -1, txr, cbEvent); } catch (RegionDestroyedException ignore) { } catch (EntryDestroyedException ignore) { } }
private final void txApplyPutLocally(LocalRegion r, Operation putOp, Object key, Object newValue, boolean didDestroy, TXState txState, TXRegionState txr, EntryEventImpl cbEvent) { try { r.txApplyPut(putOp, this.regionEntry, txState, key, newValue, didDestroy, getNearSideEventId(txState), getCallbackArgument(), txState.getPendingCallbacks(), null, null, null, cbEvent.getTailKey(), txr, cbEvent, this.pendingDelta); } catch (RegionDestroyedException ignore) { } catch (EntryDestroyedException ignore) { } }
private final void txApplyDestroyLocally(LocalRegion r, Object key, TXState txState, TXRegionState txr, EntryEventImpl cbEvent) { if (isOpDestroyEvent(r)) { try { r.txApplyDestroy(this.regionEntry, txState, key, false /*inTokenMode*/, isOpLocalDestroy(), getNearSideEventId(txState), getCallbackArgument(), txState.getPendingCallbacks(), null, null, null, cbEvent.getTailKey(), txr, cbEvent); } catch (RegionDestroyedException ignore) { } catch (EntryDestroyedException ignore) { } } // if !isOpDestroyEvent then // this destroy, to local committed state, becomes a noop // since nothing needed to be done locally. // We don't want to actually do the destroy since we told the // transaction listener that no destroy was done. }
protected final EntryEventImpl getEvent(final TXState txs, final boolean isCohort, final InternalDistributedMember myId) { // dumpOp(); //TODO:ASIF : Should we generate EventID ? At this point not generating final LocalRegion eventRegion = getBaseRegion(); final EntryEventImpl result = EntryEventImpl.create(eventRegion, getNearSideOperation(), this.regionKey, getNearSidePendingValue(), getCallbackArgument(), false, myId); // OFFHEAP: freeOffHeapResources on this event is called from TXEvent.freeOffHeapResources. if (this.destroy == DESTROY_NONE || isOpDestroy()) { result.setOldValue(this.originalVersionId); } // Use coordinator to determine if the originRemote flag should be set. // The event can come to coordinator from itself in nested function // execution so this flag is more reliable -- see bug #41498. result.setOriginRemote(isCohort); result.setTXState(txs); return result; }
out.writeByte(this.modSerialNum); DataSerializer.writeObject(getCallbackArgument(),out); DataSerializer.writeObject(getFilterRoutingInfo(),out); if (sendVersionTag) {
DataSerializer.writeObject(null, out); DataSerializer.writeObject(txes.getCallbackArgument(), out);
+ ", delta=" + entry.pendingDelta + ", op=" + entry.op + ", callbackArg=" + entry .getCallbackArgument() + ", tailKey=" + (tailKeys != null ? tailKeys.get(key) : -1L) + " for " + txId.shortToString()); + dataRegion.getFullPath() + ", key=" + key + ", op=" + entry.op + ", callbackArg=" + entry.getCallbackArgument() + ", entry=" + ArrayUtils.objectRefString(entry) + ", tailKey=" + (tailKeys != null ? tailKeys.get(key) : -1L)