public InvalidatePartitionedRegionMessage(Set recipients, Object callbackArg, PartitionedRegion r, ReplyProcessor21 processor) { super(recipients, r.getPRId(), processor, null); this.callbackArg = callbackArg; }
/** * Return canonical representation for a bucket (for logging) * * @param bucketId * the bucket * @return a String representing this PR and the bucket */ public String bucketStringForLogs(int bucketId) { return getPRId() + BUCKET_ID_SEPARATOR + bucketId; }
/** * Return canonical representation for a bucket (for logging) * * @param bucketId * the bucket * @return a String representing this PR and the bucket */ public String bucketStringForLogs(int bucketId) { return getPRId() + BUCKET_ID_SEPARATOR + bucketId; }
public InvalidatePartitionedRegionMessage(Set recipients, Object callbackArg, PartitionedRegion r, ReplyProcessor21 processor) { super(recipients, r.getPRId(), processor); this.callbackArg = callbackArg; }
@Override public final int hashCode() { return RegionInfoShip.getHashCode(this.partitionedRegion.getPRId(), this.bid); }
@Override public final int hashCode() { return RegionInfoShip.getHashCode(getPRId(), -1); }
protected DistributionMessage createRequestMessage(InternalDistributedMember recipient, ReplyProcessor21 processor, List bucketIds) { return new QueryMessage(recipient, this.pr.getPRId(), processor, this.query, this.parameters, bucketIds); }
void init(final ProxyBucketRegion pbr) { this.type = IS_BUC; this.fullPath = null; this.prId = pbr.getPartitionedRegion().getPRId(); this.bucketId = pbr.getBucketId(); }
@Override public final int hashCode() { return RegionInfoShip .getHashCode(this.partitionedRegion.getPRId(), getId()); }
public static PartitionResponse send(Set recipients, PartitionedRegion r) { PartitionResponse p = new PartitionResponse(r.getSystem(), recipients); DumpAllPRConfigMessage m = new DumpAllPRConfigMessage(recipients, r.getPRId(), p); /*Set failures = */r.getDistributionManager().putOutgoing(m); // if (failures != null && failures.size() > 0) { // throw new PartitionedRegionCommunicationException("Failed sending ", m); // } return p; }
private int getPrID(final Optimizable opt) throws StandardException { assert opt != null: "opt is not expected to be null"; final Optimizable tab = opt.getBaseTable(); assert tab != null: "tab is not expected to be null"; Region<?, ?> r = tab.getTableDescriptor().getRegion(); if (r.getAttributes().getPartitionAttributes() != null) { return ((PartitionedRegion)r).getPRId(); } return -1; }
public static PartitionResponse send(Set recipients, PartitionedRegion r, final boolean validateOnly, final boolean onlyBuckets) { PartitionResponse p = new PartitionResponse(r.getSystem(), recipients); DumpBucketsMessage m = new DumpBucketsMessage(recipients, r.getPRId(), p, validateOnly, onlyBuckets); /*Set failures =*/ r.getDistributionManager().putOutgoing(m); // if (failures != null && failures.size() > 0) { // throw new PartitionedRegionCommunicationException("Failed sending ", m); // } return p; }
private int getPrID(final Optimizable opt) throws StandardException { assert opt != null: "opt is not expected to be null"; final Optimizable tab = opt.getBaseTable(); assert tab != null: "tab is not expected to be null"; Region<?, ?> r = tab.getTableDescriptor().getRegion(); if (r.getAttributes().getPartitionAttributes() != null) { return ((PartitionedRegion)r).getPRId(); } return -1; }
private int getPrID(final Optimizable opt) throws StandardException { assert opt != null: "opt is not expected to be null"; final Optimizable tab = opt.getBaseTable(); assert tab != null: "tab is not expected to be null"; Region<?, ?> r = tab.getTableDescriptor().getRegion(); if (r.getAttributes().getPartitionAttributes() != null) { return ((PartitionedRegion)r).getPRId(); } return -1; }
public static DumpB2NResponse send(Set recipients, PartitionedRegion r, int bId, boolean justPrimaryInfo) { DumpB2NResponse p = new DumpB2NResponse(r.getSystem(), recipients); DumpB2NRegion m = new DumpB2NRegion(recipients, r.getPRId(), p, bId, justPrimaryInfo); r.getDistributionManager().putOutgoing(m); return p; }
public static DumpB2NResponse send(Set recipients, PartitionedRegion r, int bId, boolean justPrimaryInfo) { final TXStateInterface tx = r.getTXState(); DumpB2NResponse p = new DumpB2NResponse(r.getSystem(), recipients, tx); DumpB2NRegion m = new DumpB2NRegion(recipients, r.getPRId(), p, bId, justPrimaryInfo, tx); r.getDistributionManager().putOutgoing(m); return p; }
public static PartitionResponse send(Set recipients, PartitionedRegion r, final boolean validateOnly, final boolean onlyBuckets) { final TXStateInterface tx = r.getTXState(); PartitionResponse p = new PartitionResponse(r.getSystem(), recipients, tx); DumpBucketsMessage m = new DumpBucketsMessage(recipients, r.getPRId(), p, validateOnly, onlyBuckets, tx); /*Set failures =*/ r.getDistributionManager().putOutgoing(m); // if (failures != null && failures.size() > 0) { // throw new PartitionedRegionCommunicationException("Failed sending ", m); // } return p; }
public static PartitionResponse send(Set recipients, PartitionedRegion r) { final TXStateInterface tx = r.getTXState(); PartitionResponse p = new PartitionResponse(r.getSystem(), recipients, tx); DumpAllPRConfigMessage m = new DumpAllPRConfigMessage(recipients, r.getPRId(), p, tx); /*Set failures = */r.getDistributionManager().putOutgoing(m); // if (failures != null && failures.size() > 0) { // throw new PartitionedRegionCommunicationException("Failed sending ", m); // } return p; }
/** * Sends a DestroyRegionOnDataStoreMessage requesting that another VM destroy an existing * region * */ public static void send(InternalDistributedMember recipient, PartitionedRegion r, Object callbackArg) { DM dm = r.getDistributionManager(); ReplyProcessor21 rp = new ReplyProcessor21(dm, recipient); int procId = rp.getProcessorId(); DestroyRegionOnDataStoreMessage m = new DestroyRegionOnDataStoreMessage(recipient, r.getPRId(), rp, callbackArg); r.getDistributionManager().putOutgoing(m); rp.waitForRepliesUninterruptibly(); }
/** * Sends a DestroyRegionOnDataStoreMessage requesting that another VM destroy an existing * region * */ public static void send(InternalDistributedMember recipient, PartitionedRegion r, Object callbackArg) { DM dm = r.getDistributionManager(); ReplyProcessor21 rp = new ReplyProcessor21(dm, recipient); int procId = rp.getProcessorId(); DestroyRegionOnDataStoreMessage m = new DestroyRegionOnDataStoreMessage(recipient, r.getPRId(), rp, callbackArg); r.getDistributionManager().putOutgoing(m); rp.waitForRepliesUninterruptibly(); }