@Override protected void sendReply(InternalDistributedMember member, int procId, DM dm, ReplyException ex, PartitionedRegion pr, long startTime) { if (pr != null && startTime > 0) { pr.getPrStats().endPartitionMessagesProcessing(startTime); } InvalidateReplyMessage.send(member, procId, getReplySender(dm), ex, this); }
@Override protected void sendReply(InternalDistributedMember member, int procId, DM dm, ReplyException ex, PartitionedRegion pr, long startTime) { if (pr != null && startTime > 0) { pr.getPrStats().endPartitionMessagesProcessing(startTime); } InvalidateReplyMessage.send(member, procId, getReplySender(dm), ex, this.versionTag); }
@Override protected final boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion region, long startTime) throws ForceReattemptException { // this is executing in the WAITING_POOL_EXECUTOR try { region.getRedundancyProvider().endBucketCreationLocally(bucketId, newPrimary); } finally { region.getPrStats().endPartitionMessagesProcessing(startTime); } return false; }
@Override protected final boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion region, long startTime) throws ForceReattemptException { // this is executing in the WAITING_POOL_EXECUTOR try { region.getRedundancyProvider().endBucketCreationLocally(bucketId, newPrimary); } finally { region.getPrStats().endPartitionMessagesProcessing(startTime); } return false; }
/** Send a generic ReplyMessage. This is in a method so that subclasses can override the reply message type * @param pr the Partitioned Region for the message whose statistics are incremented * @param startTime the start time of the operation in nanoseconds * @see PutMessage#sendReply */ protected void sendReply(InternalDistributedMember member, int procId, DM dm, ReplyException ex, PartitionedRegion pr, long startTime) { if (pr != null && startTime > 0) { pr.getPrStats().endPartitionMessagesProcessing(startTime); } ReplyMessage.send(member, procId, ex, getReplySender(dm), this, pr != null && pr.isInternalRegion()); }
/** Send a generic ReplyMessage. This is in a method so that subclasses can override the reply message type * @param pr the Partitioned Region for the message whose statistics are incremented * @param startTime the start time of the operation in nanoseconds * @see PutMessage#sendReply */ protected void sendReply(InternalDistributedMember member, int procId, DM dm, ReplyException ex, PartitionedRegion pr, long startTime) { if (pr != null && startTime > 0) { pr.getPrStats().endPartitionMessagesProcessing(startTime); } ReplyMessage.send(member, procId, ex, getReplySender(dm), pr != null && pr.isInternalRegion()); }
@Override protected void sendReply(InternalDistributedMember member, int procId, DM dm, ReplyException ex, PartitionedRegion pr, long startTime) { if (pr != null) { if (startTime > 0) { pr.getPrStats().endPartitionMessagesProcessing(startTime); } if (!pr.getConcurrencyChecksEnabled() && this.versions != null) { this.versions.clear(); } } RemoveAllReplyMessage.send(member, procId, getReplySender(dm), this.result, this.versions, ex); }
@Override protected void sendReply(InternalDistributedMember member, int procId, DM dm, ReplyException ex, PartitionedRegion pr, long startTime) { // if (!result && getOperation().isCreate()) { // System.err.println("DEBUG: put returning false. ifNew=" + ifNew // +" ifOld="+ifOld + " message=" + this); // } if (pr != null) { if (startTime > 0) { pr.getPrStats().endPartitionMessagesProcessing(startTime); } if (!pr.getConcurrencyChecksEnabled() && this.versions != null) { this.versions.clear(); } } PutAllReplyMessage.send(member, procId, getReplySender(dm), result, this.versions, ex, this); }
@Override protected void sendReply(InternalDistributedMember member, int procId, DM dm, ReplyException ex, PartitionedRegion pr, long startTime) { // if (!result && getOperation().isCreate()) { // System.err.println("DEBUG: put returning false. ifNew=" + ifNew // +" ifOld="+ifOld + " message=" + this); // } if (pr != null) { if (startTime > 0) { pr.getPrStats().endPartitionMessagesProcessing(startTime); } if (!pr.getConcurrencyChecksEnabled() && this.versions != null) { this.versions.clear(); } } PutAllReplyMessage.send(member, procId, getReplySender(dm), this.result, this.versions, ex); }
protected void sendReply(InternalDistributedMember member, int procId, DM dm, ReplyException ex, PartitionedRegion pr, long startTime, EntryEventImpl ev) { if (pr != null && startTime > 0) { pr.getPrStats().endPartitionMessagesProcessing(startTime); pr.getCancelCriterion().checkCancelInProgress(null); // bug 39014 - don't send a positive response if we may have failed } PutReplyMessage.send(member, procId, getReplySender(dm), result, getOperation(), ex, this, ev); }
protected void sendReply(InternalDistributedMember member, int procId, DM dm, ReplyException ex, PartitionedRegion pr, long startTime, EntryEventImpl ev) { if (pr != null && startTime > 0) { pr.getPrStats().endPartitionMessagesProcessing(startTime); pr.getCancelCriterion().checkCancelInProgress(null); // bug 39014 - don't send a positive response if we may have failed } PutReplyMessage.send(member, procId, getReplySender(dm), result, getOperation(), ex, this, ev); }
@Override protected final boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion region, long startTime) throws ForceReattemptException { PartitionedRegionDataStore dataStore = region.getDataStore(); boolean moved = dataStore.moveBucket(this.bucketId, this.source,true); region.getPrStats().endPartitionMessagesProcessing(startTime); MoveBucketReplyMessage.send( getSender(), getProcessorId(), dm, null, moved); return false; }
@Override protected final boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion region, long startTime) throws ForceReattemptException { PartitionedRegionDataStore dataStore = region.getDataStore(); boolean moved = dataStore.moveBucket(this.bucketId, this.source,true); region.getPrStats().endPartitionMessagesProcessing(startTime); MoveBucketReplyMessage.send( getSender(), getProcessorId(), dm, null, moved); return false; }
@Override protected final boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion region, long startTime) throws ForceReattemptException { PartitionedRegionDataStore dataStore = region.getDataStore(); boolean removed = dataStore.removeBucket(this.bucketId, this.forceRemovePrimary); region.getPrStats().endPartitionMessagesProcessing(startTime); RemoveBucketReplyMessage.send( getSender(), getProcessorId(), dm, null, removed); return false; }
@Override protected final boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion region, long startTime) throws ForceReattemptException { PartitionedRegionDataStore dataStore = region.getDataStore(); boolean removed = dataStore.removeBucket(this.bucketId, this.forceRemovePrimary); region.getPrStats().endPartitionMessagesProcessing(startTime); RemoveBucketReplyMessage.send( getSender(), getProcessorId(), dm, null, removed); return false; }
@Override protected final boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion region, long startTime) throws ForceReattemptException { BucketAdvisor bucketAdvisor = region.getRegionAdvisor().getBucketAdvisor(this.bucketId); bucketAdvisor.deposePrimary(); region.getPrStats().endPartitionMessagesProcessing(startTime); DeposePrimaryBucketReplyMessage.send( getSender(), getProcessorId(), dm, (ReplyException)null); return false; }
@Override protected final boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion region, long startTime) throws ForceReattemptException { BucketAdvisor bucketAdvisor = region.getRegionAdvisor().getBucketAdvisor(this.bucketId); bucketAdvisor.deposePrimary(); region.getPrStats().endPartitionMessagesProcessing(startTime); DeposePrimaryBucketReplyMessage.send( getSender(), getProcessorId(), dm, (ReplyException)null); return false; }
@Override protected void sendReply(InternalDistributedMember member, int procId, DM dm, ReplyException ex, PartitionedRegion pr, long startTime) { if (pr != null && startTime > 0) { pr.getPrStats().endPartitionMessagesProcessing(startTime); } if (ex == null) { DestroyReplyMessage.send(getSender(), getReplySender(dm), this.processorId, this.versionTag, pr != null && pr.isInternalRegion()); } else { ReplyMessage.send(getSender(), this.processorId, ex, getReplySender(dm), pr != null && pr.isInternalRegion()); } }
@Override protected void sendReply(InternalDistributedMember member, int procId, DM dm, ReplyException ex, PartitionedRegion pr, long startTime) { if (pr != null && startTime > 0) { pr.getPrStats().endPartitionMessagesProcessing(startTime); } if (ex == null) { DestroyReplyMessage.send(getSender(), getReplySender(dm), this.processorId, this.versionTag, this, pr != null && pr.isInternalRegion()); } else { ReplyMessage.send(getSender(), this.processorId, ex, getReplySender(dm), this, pr != null && pr.isInternalRegion()); } }
@Override protected boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion r, long startTime) throws CacheException, ForceReattemptException { PartitionedRegionDataStore ds = r.getDataStore(); final long size; if (ds != null) { size = ds.getBucketSize(bucketId); } else { // sender thought this member had a data store, but it doesn't throw new ForceReattemptException(LocalizedStrings.BucketSizeMessage_NO_DATASTORE_IN_0.toLocalizedString(dm.getDistributionManagerId())); } r.getPrStats().endPartitionMessagesProcessing(startTime); BucketSizeReplyMessage.send(getSender(), getProcessorId(), dm, size); return false; }