@Override protected final void preProcessMessage(final DistributionManager dm) { this.replySequenceId = 1; this.replyTX = null; if (dm != null) { this.dm = dm; if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, toString() + ": sender created for source " + getSender()); } } else { this.dm = null; if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, toString() + ": sender created for local node."); } } }
@Override protected final void preProcessMessage(final DistributionManager dm) { this.replySequenceId = 1; this.replyTX = null; if (dm != null) { this.dm = dm; if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, toString() + ": sender created for source " + getSender()); } } else { this.dm = null; if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, toString() + ": sender created for local node."); } } }
@Override protected final void preProcessMessage(final DistributionManager dm) { this.replySequenceId = 1; this.replyTX = null; if (dm != null) { this.dm = dm; if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, toString() + ": sender created for source " + getSender()); } } else { this.dm = null; if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, toString() + ": sender created for local node."); } } }
@Override protected final void beforeWaitForReplies( GfxdReplyMessageProcessor processor, boolean toSelf) throws ReplyException { final long begintime = this.timeStatsEnabled ? XPLAINUtil .recordTiming(process_time == 0 ? process_time = -1 /*record*/ : -2/*ignore nested call*/) : 0; assert processor == this.processor; if (toSelf) { // process on self before waiting for other replies if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, "GfxdFunctionMessage#beforeWaitForReplies: executing " + "message in this JVM: " + toString()); } setSender(Misc.getMyId()); this.replySequenceId = 1; process(null); /* don't throw exception from here; higher layer will throw if required * reading from ReplyException anyways // throw ReplyException if execution on self failed so as to handle // in a consistent manner in higher layers final ReplyException replyEx; if ((replyEx = processor.getReplyException()) != null) { throw replyEx; } */ } self_execution_time = this.timeStatsEnabled ? XPLAINUtil.recordTiming(begintime) : 0; }
@Override protected final void beforeWaitForReplies( GfxdReplyMessageProcessor processor, boolean toSelf) throws ReplyException { final long begintime = this.timeStatsEnabled ? XPLAINUtil .recordTiming(process_time == 0 ? process_time = -1 /*record*/ : -2/*ignore nested call*/) : 0; assert processor == this.processor; if (toSelf) { // process on self before waiting for other replies if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, "GfxdFunctionMessage#beforeWaitForReplies: executing " + "message in this JVM: " + toString()); } setSender(Misc.getMyId()); this.replySequenceId = 1; process(null); /* don't throw exception from here; higher layer will throw if required * reading from ReplyException anyways // throw ReplyException if execution on self failed so as to handle // in a consistent manner in higher layers final ReplyException replyEx; if ((replyEx = processor.getReplyException()) != null) { throw replyEx; } */ } self_execution_time = this.timeStatsEnabled ? XPLAINUtil.recordTiming(begintime) : 0; }
@Override protected final void beforeWaitForReplies( GfxdReplyMessageProcessor processor, boolean toSelf) throws ReplyException { final long begintime = this.timeStatsEnabled ? XPLAINUtil .recordTiming(process_time == 0 ? process_time = -1 /*record*/ : -2/*ignore nested call*/) : 0; assert processor == this.processor; if (toSelf) { // process on self before waiting for other replies if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, "GfxdFunctionMessage#beforeWaitForReplies: executing " + "message in this JVM: " + toString()); } setSender(Misc.getMyId()); this.replySequenceId = 1; process(null); /* don't throw exception from here; higher layer will throw if required * reading from ReplyException anyways // throw ReplyException if execution on self failed so as to handle // in a consistent manner in higher layers final ReplyException replyEx; if ((replyEx = processor.getReplyException()) != null) { throw replyEx; } */ } self_execution_time = this.timeStatsEnabled ? XPLAINUtil.recordTiming(begintime) : 0; }
SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, ID + ": Rescheduling execution due to possible cache-miss: " + gfxdFunctionMessage.toString());
SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, ID + ": Rescheduling execution due to possible cache-miss: " + gfxdFunctionMessage.toString());
SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, ID + ": Rescheduling execution due to possible cache-miss: " + gfxdFunctionMessage.toString());