public void memberDeparted(final InternalDistributedMember id, final boolean crashed) { synchronized (membersLock) { pendingResponders.remove(id); } synchronized (this) { if (id.equals(selectedNode) && (this.requestInProgress) && (this.remoteGetInProgress)) { selectedNode = null; selectedNodeDead = true; computeRemainingTimeout(); logFine(this + ": processing loss of member ", id); this.lastNotifySpot = 3; notifyAll(); // signal the waiter; we are not done; but we need the waiter to call sendNetSearchRequest } if(responseQueue != null) responseQueue.remove(id); checkIfDone(); } // this.advisor.getLogWriter().info( // "DEBUG: netsearch id " + this.processorId + " received memberDeparted event for " + id); }
if (requestorTimedOut) { logFine("incomingNetSearchReply() - requestorTimedOut", this); signalTimedOut(); this.authorative = authorative; this.versionTag = versionTag; logFine("incomingNetSearchReply() - got obj", this); signalDone(); logFine("incomingNetSearchReply() - null obj, no more time", this); logFine("incomingNetSearchReply() - null obj, sendNetSearchRequest", this); sendNetSearchRequest(); logFine("incomingNetSearchReply() - requestInProgress is false", this);
/** * Invoked on the receiver - which, in this case, was the initiator of * the NetWriteRequestMessage. This concludes the net write request, by * communicating an object value. */ @Override protected void process(DistributionManager dm) { SearchLoadAndWriteProcessor processor = null; processor = (SearchLoadAndWriteProcessor)getProcessorKeeper().retrieve(processorId); if (processor == null) { logFine("NetWriteReplyMessage() SearchLoadAndWriteProcessor no longer exists", null); return; } processor.incomingNetWriteReply(this.netWriteSucceeded, this.e, this.cacheWriterException); }
/** * Invoked on the receiver - which, in this case, was the initiator of * the NetLoadRequestMessage. This concludes the net request, by * communicating an object value. */ @Override protected void process(DistributionManager dm) { SearchLoadAndWriteProcessor processor = null; processor = (SearchLoadAndWriteProcessor)getProcessorKeeper().retrieve(processorId); if (processor == null) { logFine("NetLoadReplyMessage() SearchLoadAndWriteProcessor no longer exists", null); return; } processor.incomingNetLoadReply(this.result, 0,this.aCallbackArgument, this.e,this.isSerialized, this.requestorTimedOut); }
/** * Invoked on the receiver - which, in this case, was the initiator of * the NetSearchRequestMessage. This concludes the net request, by * communicating an object value. */ @Override protected void process(DistributionManager dm) { SearchLoadAndWriteProcessor processor = null; processor = (SearchLoadAndWriteProcessor)getProcessorKeeper().retrieve(processorId); if (processor == null) { logFine("NetSearchReplyMessage() SearchLoadAndWriteProcessor " + processorId + " no longer exists", null); return; } long lastModifiedSystemTime = 0; if (this.lastModified != 0) { lastModifiedSystemTime = this.lastModified; } if (this.versionTag != null) { this.versionTag.replaceNullIDs(getSender()); } processor.incomingNetSearchReply(this.value, lastModifiedSystemTime, this.isSerialized, this.requestorTimedOut, this.authoritative, this.versionTag); }
/** * Invoked on the receiver - which, in this case, was the initiator of * the QueryMessage . */ @Override protected void process(DistributionManager dm) { // NOTE: keep this method efficient since it is optimized // by executing it in the p2p reader. // This is done with this line in DistributionMessage.java: // || c.equals(SearchLoadAndWriteProcessor.ResponseMessage.class) SearchLoadAndWriteProcessor processor = null; processor = (SearchLoadAndWriteProcessor)getProcessorKeeper().retrieve(this.processorId); if (processor == null) { logFine("Response() SearchLoadAndWriteProcessor no longer exists", null); return; } long lastModifiedSystemTime = 0; if (this.lastModified != 0) { lastModifiedSystemTime = this.lastModified; } if (this.versionTag != null) { this.versionTag.replaceNullIDs(getSender()); } processor.incomingResponse(this.result, lastModifiedSystemTime, this.isPresent, this.isSerialized, this.requestorTimedOut, this.getSender(), dm, versionTag); }