public final void sendResult(Object oneResult) { if (GemFireXDUtils.TraceRSIter | SanityManager.isFinerEnabled) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_RSITER, "GfxdFunctionMessage: sending result to recipient " + getSenderForReply() + ": " + oneResult); } GfxdFunctionReplyMessage replyMsg = new GfxdFunctionReplyMessage(oneResult, this.replySequenceId, false, this.processorId, this, false, false); putReply(replyMsg); }
public final void sendResult(Object oneResult) { if (GemFireXDUtils.TraceRSIter | SanityManager.isFinerEnabled) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_RSITER, "GfxdFunctionMessage: sending result to recipient " + getSenderForReply() + ": " + oneResult); } GfxdFunctionReplyMessage replyMsg = new GfxdFunctionReplyMessage(oneResult, this.replySequenceId, false, this.processorId, this, false, false); putReply(replyMsg); }
public final void sendResult(Object oneResult) { if (GemFireXDUtils.TraceRSIter | SanityManager.isFinerEnabled) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_RSITER, "GfxdFunctionMessage: sending result to recipient " + getSenderForReply() + ": " + oneResult); } GfxdFunctionReplyMessage replyMsg = new GfxdFunctionReplyMessage(oneResult, this.replySequenceId, false, this.processorId, this, false, false); putReply(replyMsg); }
final void sendException(final ReplyException replyEx, final GfxdFunctionMessage<?> fnMsg) { if (GemFireXDUtils.TraceRSIter | SanityManager.isFinerEnabled) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_RSITER, "GfxdFunctionMessage: sending exception to recipient " + getSenderForReply() + ": " + replyEx); } GfxdFunctionReplyMessage replyMsg = new GfxdFunctionReplyMessage(fnMsg); replyMsg.setException(replyEx); replyMsg.setProcessorId(this.processorId); putReply(replyMsg); }
final void sendException(final ReplyException replyEx, final GfxdFunctionMessage<?> fnMsg) { if (GemFireXDUtils.TraceRSIter | SanityManager.isFinerEnabled) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_RSITER, "GfxdFunctionMessage: sending exception to recipient " + getSenderForReply() + ": " + replyEx); } GfxdFunctionReplyMessage replyMsg = new GfxdFunctionReplyMessage(fnMsg); replyMsg.setException(replyEx); replyMsg.setProcessorId(this.processorId); putReply(replyMsg); }
final void sendException(final ReplyException replyEx, final GfxdFunctionMessage<?> fnMsg) { if (GemFireXDUtils.TraceRSIter | SanityManager.isFinerEnabled) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_RSITER, "GfxdFunctionMessage: sending exception to recipient " + getSenderForReply() + ": " + replyEx); } GfxdFunctionReplyMessage replyMsg = new GfxdFunctionReplyMessage(fnMsg); replyMsg.setException(replyEx); replyMsg.setProcessorId(this.processorId); putReply(replyMsg); }
private void putReply(GfxdFunctionReplyMessage replyMsg) { if (this.dm != null) { replyMsg.setRecipient(getSenderForReply()); ReplySender sender = getReplySender(this.dm); // don't send anything after lastResult with DirectReplySender if (this.replySequenceId != TERMINAL_REPLY_SEQID || !(sender instanceof DirectReplySender)) { sender.putOutgoing(replyMsg); } } // process for self in place else { replyMsg.setSender(Misc.getMyId()); this.processor.process(replyMsg); } // can happen if an exception is sent after lastResult invocation if (this.replySequenceId != TERMINAL_REPLY_SEQID) { this.replySequenceId++; } }
private void putReply(GfxdFunctionReplyMessage replyMsg) { if (this.dm != null) { replyMsg.setRecipient(getSenderForReply()); ReplySender sender = getReplySender(this.dm); // don't send anything after lastResult with DirectReplySender if (this.replySequenceId != TERMINAL_REPLY_SEQID || !(sender instanceof DirectReplySender)) { sender.putOutgoing(replyMsg); } } // process for self in place else { replyMsg.setSender(Misc.getMyId()); this.processor.process(replyMsg); } // can happen if an exception is sent after lastResult invocation if (this.replySequenceId != TERMINAL_REPLY_SEQID) { this.replySequenceId++; } }
private void putReply(GfxdFunctionReplyMessage replyMsg) { if (this.dm != null) { replyMsg.setRecipient(getSenderForReply()); ReplySender sender = getReplySender(this.dm); // don't send anything after lastResult with DirectReplySender if (this.replySequenceId != TERMINAL_REPLY_SEQID || !(sender instanceof DirectReplySender)) { sender.putOutgoing(replyMsg); } } // process for self in place else { replyMsg.setSender(Misc.getMyId()); this.processor.process(replyMsg); } // can happen if an exception is sent after lastResult invocation if (this.replySequenceId != TERMINAL_REPLY_SEQID) { this.replySequenceId++; } }
SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_RSITER, "GfxdFuntionMessage: sending last result to recipient " + getSenderForReply() + " with " + getTXState() + ": " + oneResult);
SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_RSITER, "GfxdFuntionMessage: sending last result to recipient " + getSenderForReply() + " with " + getTXState() + ": " + oneResult);
SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_RSITER, "GfxdFuntionMessage: sending last result to recipient " + getSenderForReply() + " with " + getTXState() + ": " + oneResult);