Timestamp ct = r.getConstructTime(); if (begin_receive_time == null || begin_receive_time.before(ct)) { begin_receive_time = ct; if (msg.dist_direction == XPLAINUtil.DIRECTION.IN) { msg.dist_object_type = XPLAINUtil.OP_RESULT_RECEIVE; msg.originator = r.getSender().toString(); msg.target_member = c.getDistributedSystem().getDistributedMember(); msg.construct_time = r.getConstructTime(); msg.ser_deser_time = r.getSerializeDeSerializeTime(); msg.process_time = r.getProcessTime(); msg.throttle_time = 0; msg.replySingleResult = r.getSingleResult(); msg.replySingleResultStatistics = r.getSingleResultStatistics();
final GfxdResponseCode responseCode = replyMsg.getResponseCode(); waiting = addResult(replyMsg, responseCode);
() -> new GfxdRemoveLoaderMessage()); DSFIDFactory.registerGemFireXDClass(FUNCTION_REPLY_MESSAGE, () -> new GfxdFunctionMessage.GfxdFunctionReplyMessage()); DSFIDFactory.registerGemFireXDClass(STMNT_EXECUTOR_FUNCTION, () -> new StatementExecutorMessage());
Timestamp ct = r.getConstructTime(); if (begin_receive_time == null || begin_receive_time.before(ct)) { begin_receive_time = ct; if (msg.dist_direction == XPLAINUtil.DIRECTION.IN) { msg.dist_object_type = XPLAINUtil.OP_RESULT_RECEIVE; msg.originator = r.getSender().toString(); msg.target_member = c.getDistributedSystem().getDistributedMember(); msg.construct_time = r.getConstructTime(); msg.ser_deser_time = r.getSerializeDeSerializeTime(); msg.process_time = r.getProcessTime(); msg.throttle_time = 0; msg.replySingleResult = r.getSingleResult(); msg.replySingleResultStatistics = r.getSingleResultStatistics();
Timestamp ct = r.getConstructTime(); if (begin_receive_time == null || begin_receive_time.before(ct)) { begin_receive_time = ct; if (msg.dist_direction == XPLAINUtil.DIRECTION.IN) { msg.dist_object_type = XPLAINUtil.OP_RESULT_RECEIVE; msg.originator = r.getSender().toString(); msg.target_member = c.getDistributedSystem().getDistributedMember(); msg.construct_time = r.getConstructTime(); msg.ser_deser_time = r.getSerializeDeSerializeTime(); msg.process_time = r.getProcessTime(); msg.throttle_time = 0; msg.replySingleResult = r.getSingleResult(); msg.replySingleResultStatistics = r.getSingleResultStatistics();
final GfxdFunctionReplyMessage replyMsg, final GfxdResponseCode responseCode) { final InternalDistributedMember sender = replyMsg.getSender(); final boolean isLastResult = responseCode.isGrant(); if (isLastResult || responseCode.isWaiting()) { addResult(sender, replyMsg.getException());
final GfxdFunctionReplyMessage replyMsg, final GfxdResponseCode responseCode) { final InternalDistributedMember sender = replyMsg.getSender(); final boolean isLastResult = responseCode.isGrant(); if (isLastResult || responseCode.isWaiting()) { addResult(sender, replyMsg.getException());
final GfxdFunctionReplyMessage replyMsg, final GfxdResponseCode responseCode) { final InternalDistributedMember sender = replyMsg.getSender(); final boolean isLastResult = responseCode.isGrant(); if (isLastResult || responseCode.isWaiting()) { addResult(sender, replyMsg.getException());
GfxdFunctionReplyMessage replyMsg = new GfxdFunctionReplyMessage(oneResult, this.replySequenceId, true, this.processorId, this, sendTXChanges, finishTXRead);
GfxdFunctionReplyMessage replyMsg = new GfxdFunctionReplyMessage(oneResult, this.replySequenceId, true, this.processorId, this, sendTXChanges, finishTXRead);
final GfxdResponseCode responseCode = replyMsg.getResponseCode(); waiting = addResult(replyMsg, responseCode);
GfxdFunctionReplyMessage replyMsg = new GfxdFunctionReplyMessage(oneResult, this.replySequenceId, true, this.processorId, this, sendTXChanges, finishTXRead);
final GfxdResponseCode responseCode = replyMsg.getResponseCode(); waiting = addResult(replyMsg, responseCode);
/** * Add a reply message from a member having given {@link GfxdResponseCode}. * * @return true if more results are expected from the member else false */ protected boolean addResult(final GfxdFunctionReplyMessage replyMsg, final GfxdResponseCode responseCode) { if (responseCode.isGrant() || responseCode.isWaiting()) { addResult(replyMsg.getSender(), replyMsg.singleResult); } else { if (!responseCode.isException()) { Assert.fail("GfxdFunctionReplyMessageProcessor: " + "unexpected responseCode=" + responseCode); } if (this.latch == null) { addResult(replyMsg.getSender(), replyMsg.getException()); } } return processResponseCode(replyMsg, responseCode); }
/** * Add a reply message from a member having given {@link GfxdResponseCode}. * * @return true if more results are expected from the member else false */ protected boolean addResult(final GfxdFunctionReplyMessage replyMsg, final GfxdResponseCode responseCode) { if (responseCode.isGrant() || responseCode.isWaiting()) { addResult(replyMsg.getSender(), replyMsg.singleResult); } else { if (!responseCode.isException()) { Assert.fail("GfxdFunctionReplyMessageProcessor: " + "unexpected responseCode=" + responseCode); } if (this.latch == null) { addResult(replyMsg.getSender(), replyMsg.getException()); } } return processResponseCode(replyMsg, responseCode); }
/** * Add a reply message from a member having given {@link GfxdResponseCode}. * * @return true if more results are expected from the member else false */ protected boolean addResult(final GfxdFunctionReplyMessage replyMsg, final GfxdResponseCode responseCode) { if (responseCode.isGrant() || responseCode.isWaiting()) { addResult(replyMsg.getSender(), replyMsg.singleResult); } else { if (!responseCode.isException()) { Assert.fail("GfxdFunctionReplyMessageProcessor: " + "unexpected responseCode=" + responseCode); } if (this.latch == null) { addResult(replyMsg.getSender(), replyMsg.getException()); } } return processResponseCode(replyMsg, responseCode); }
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { super.fromData(in); if (!this.timeStatsEnabled) { this.responseCode = GfxdResponseCode.fromData(in); this.singleResult = DataSerializer.readObject(in); } else { this.construct_time = XPLAINUtil.currentTimeStamp(); this.responseCode = GfxdResponseCode.fromData(in); this.singleResult = DataSerializer.readObject(in); this.ser_deser_time = XPLAINUtil.recordStdTiming(getTimestamp()); } }
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { super.fromData(in); if (!this.timeStatsEnabled) { this.responseCode = GfxdResponseCode.fromData(in); this.singleResult = DataSerializer.readObject(in); } else { this.construct_time = XPLAINUtil.currentTimeStamp(); this.responseCode = GfxdResponseCode.fromData(in); this.singleResult = DataSerializer.readObject(in); this.ser_deser_time = XPLAINUtil.recordStdTiming(getTimestamp()); } }
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { super.fromData(in); if (!this.timeStatsEnabled) { this.responseCode = GfxdResponseCode.fromData(in); this.singleResult = DataSerializer.readObject(in); } else { this.construct_time = XPLAINUtil.currentTimeStamp(); this.responseCode = GfxdResponseCode.fromData(in); this.singleResult = DataSerializer.readObject(in); this.ser_deser_time = XPLAINUtil.recordStdTiming(getTimestamp()); } }
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); }