@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); }
@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); }
@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); }
/** * 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); }