StandardException { final Map<DistributedMember, ReplyException> exceptions = getReplyExceptions(); addToFailedNodes(fnMsg);
protected final void waitForResult() throws FunctionException { try { if (isExpectingDirectReply()) { endResults(); waitForReplies(); if (this.latch != null) { this.latch.await(); getDistributionManager().getCancelCriterion().checkCancelInProgress(ie); } catch (ReplyException ex) { try { handleReplyException(toString(), ex, null); } catch (StandardException se) { throw new FunctionException(se); postWait();
final GfxdFunctionReplyMessageProcessor<T> processor = msg.processor; if (processor != null) { processor.addToFailedNodes(msg);
final GfxdFunctionReplyMessageProcessor<T> processor = msg.processor; if (processor != null) { processor.addToFailedNodes(msg);
final GfxdFunctionReplyMessageProcessor<T> processor = msg.processor; if (processor != null) { processor.addToFailedNodes(msg);
processor.addResult(memberId, resultOfSingleExecution); this.lastFlushedId++; if (size > 0) { | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, "ListOfReplies for " + processor.getProcessorId() + ": processing previously unordered message " + "with sequence " + (this.lastFlushedId + 1) + ", expectedReplies=" + this.expectedReplies); processor.addResult(memberId, result); pos++; this.lastFlushedId++; "ListOfReplies for " + processor.getProcessorId() + ": queueing unordered message with sequence " + sequenceId + " (lastFlushedId=" + this.lastFlushedId
processor.addResult(memberId, resultOfSingleExecution); this.lastFlushedId++; if (size > 0) { | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, "ListOfReplies for " + processor.getProcessorId() + ": processing previously unordered message " + "with sequence " + (this.lastFlushedId + 1) + ", expectedReplies=" + this.expectedReplies); processor.addResult(memberId, result); pos++; this.lastFlushedId++; "ListOfReplies for " + processor.getProcessorId() + ": queueing unordered message with sequence " + sequenceId + " (lastFlushedId=" + this.lastFlushedId
processor.addResult(memberId, resultOfSingleExecution); this.lastFlushedId++; if (size > 0) { | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, "ListOfReplies for " + processor.getProcessorId() + ": processing previously unordered message " + "with sequence " + (this.lastFlushedId + 1) + ", expectedReplies=" + this.expectedReplies); processor.addResult(memberId, result); pos++; this.lastFlushedId++; "ListOfReplies for " + processor.getProcessorId() + ": queueing unordered message with sequence " + sequenceId + " (lastFlushedId=" + this.lastFlushedId
StandardException { final Map<DistributedMember, ReplyException> exceptions = getReplyExceptions(); addToFailedNodes(fnMsg);
StandardException { final Map<DistributedMember, ReplyException> exceptions = getReplyExceptions(); addToFailedNodes(fnMsg);
protected final void waitForResult() throws FunctionException { try { if (isExpectingDirectReply()) { endResults(); waitForReplies(); if (this.latch != null) { this.latch.await(); getDistributionManager().getCancelCriterion().checkCancelInProgress(ie); } catch (ReplyException ex) { try { handleReplyException(toString(), ex, null); } catch (StandardException se) { throw new FunctionException(se); postWait();
protected final void waitForResult() throws FunctionException { try { if (isExpectingDirectReply()) { endResults(); waitForReplies(); if (this.latch != null) { this.latch.await(); getDistributionManager().getCancelCriterion().checkCancelInProgress(ie); } catch (ReplyException ex) { try { handleReplyException(toString(), ex, null); } catch (StandardException se) { throw new FunctionException(se); postWait();
/** * 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 memberDeparted(final InternalDistributedMember member, final boolean crashed) { if (member != null && waitingOnMember(member)) { final ReplyException replyEx = new ReplyException( new CacheClosedException(LocalizedStrings .MemberMessage_MEMBERRESPONSE_GOT_MEMBERDEPARTED_EVENT_FOR_0_CRASHED_1 .toLocalizedString(new Object[] { member, String.valueOf(crashed) }))); // for GemFireXD streaming result collector also add the exception // as result so that it can be thrown during getResult() or iteration if (this.latch == null) { addResult(member, replyEx); } // add a CacheClosedException for the member for retries processExceptionFromMember(member, replyEx); } super.memberDeparted(member, crashed); }
/** * 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 memberDeparted(final InternalDistributedMember member, final boolean crashed) { if (member != null && waitingOnMember(member)) { final ReplyException replyEx = new ReplyException( new CacheClosedException(LocalizedStrings .MemberMessage_MEMBERRESPONSE_GOT_MEMBERDEPARTED_EVENT_FOR_0_CRASHED_1 .toLocalizedString(new Object[] { member, String.valueOf(crashed) }))); // for GemFireXD streaming result collector also add the exception // as result so that it can be thrown during getResult() or iteration if (this.latch == null) { addResult(member, replyEx); } // add a CacheClosedException for the member for retries processExceptionFromMember(member, replyEx); } super.memberDeparted(member, crashed); }
/** * 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); }