void remove() { getProcessorKeeper().remove( this.processorId); }
void remove() { getProcessorKeeper().remove( this.processorId); }
static SearchLoadAndWriteProcessor getProcessor() { SearchLoadAndWriteProcessor processor = new SearchLoadAndWriteProcessor(); processor.processorId = getProcessorKeeper().put(processor); return processor; }
/** * 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) { if (logger.isDebugEnabled()) { logger.debug("NetLoadReplyMessage() SearchLoadAndWriteProcessor no longer exists"); } return; } processor.incomingNetLoadReply(this.result, 0,this.aCallbackArgument, this.e,this.isSerialized, this.requestorTimedOut); }
static SearchLoadAndWriteProcessor getProcessor() { SearchLoadAndWriteProcessor processor = new SearchLoadAndWriteProcessor(); processor.processorId = getProcessorKeeper().put(processor); return processor; }
/** * 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) { if (logger.isDebugEnabled()) { logger.debug("NetWriteReplyMessage() SearchLoadAndWriteProcessor no longer exists"); } return; } processor.incomingNetWriteReply(this.netWriteSucceeded, this.e, this.cacheWriterException); }
void release() { try { if (this.lock != null) { try { this.lock.unlock(); } catch (CancelException ignore) { } this.lock = null; } } finally { try { if (this.advisor != null) { this.advisor.removeMembershipListener(this); } } catch (IllegalArgumentException e) { } finally { getProcessorKeeper().remove(this.processorId); } } }
void release() { try { if (this.lock != null) { try { this.lock.unlock(); } catch (CancelException ignore) { } this.lock = null; } } finally { try { if (this.advisor != null) { this.advisor.removeMembershipListener(this); } } catch (IllegalArgumentException e) { } finally { getProcessorKeeper().remove(this.processorId); } } }
/** * 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) { if (logger.isDebugEnabled()) { logger.debug("NetSearchReplyMessage() SearchLoadAndWriteProcessor {} no longer exists", processorId); } 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); }
processor = (SearchLoadAndWriteProcessor)getProcessorKeeper().retrieve(this.processorId); if (processor == null) { if (logger.isDebugEnabled()) {
/** * 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); }