private AllBucketProfilesUpdateMessage(Set recipients, int partitionedRegionId, int processorId, Map<Integer, BucketAdvisor.BucketProfile> profiles) { setRecipients(recipients); this.processorId = processorId; this.prId = partitionedRegionId; this.profiles = profiles; }
receipients = pr.getRegionAdvisor().adviseAllPRNodes(); ReplyProcessor21 reply = AllBucketProfilesUpdateMessage.send(receipients, pr.getDistributionManager(), pr.getPRId(), profiles, true); if(reply != null) {
/** * Send a profile update to a set of members. * @param recipients the set of members to be notified * @param dm the distribution manager used to send the message * @param prId the unique partitioned region identifier * @param profiles bucked id to profile map * @param requireAck whether or not to expect a reply * @return an instance of reply processor if requireAck is true on which the caller * can wait until the event has finished. */ public static ReplyProcessor21 send(Set recipients, DM dm, int prId, Map<Integer, BucketAdvisor.BucketProfile> profiles, boolean requireAck) { if (recipients.isEmpty()) { return null; } ReplyProcessor21 rp = null; int procId = 0; if (requireAck) { rp = new ReplyProcessor21(dm, recipients); procId = rp.getProcessorId(); } AllBucketProfilesUpdateMessage m = new AllBucketProfilesUpdateMessage(recipients, prId, procId, profiles); dm.putOutgoing(m); return rp; }
ReplyMessage.send(getSender(), this.processorId, null, dm);
receipients = pr.getRegionAdvisor().adviseAllPRNodes(); ReplyProcessor21 reply = AllBucketProfilesUpdateMessage.send(receipients, pr.getDistributionManager(), pr.getPRId(), profiles, true); if(reply != null) {
/** * Send a profile update to a set of members. * @param recipients the set of members to be notified * @param dm the distribution manager used to send the message * @param prId the unique partitioned region identifier * @param profiles bucked id to profile map * @param requireAck whether or not to expect a reply * @return an instance of reply processor if requireAck is true on which the caller * can wait until the event has finished. */ public static ReplyProcessor21 send(Set recipients, DM dm, int prId, Map<Integer, BucketAdvisor.BucketProfile> profiles, boolean requireAck) { if (recipients.isEmpty()) { return null; } ReplyProcessor21 rp = null; int procId = 0; if (requireAck) { rp = new ReplyProcessor21(dm, recipients); procId = rp.getProcessorId(); } AllBucketProfilesUpdateMessage m = new AllBucketProfilesUpdateMessage(recipients, prId, procId, profiles); dm.putOutgoing(m); return rp; }
ReplyMessage.send(getSender(), this.processorId, null, dm, null);
receipients = pr.getRegionAdvisor().adviseAllPRNodes(); ReplyProcessor21 reply = AllBucketProfilesUpdateMessage.send( receipients, pr.getDistributionManager(), pr.getPRId(), profiles, true);
() -> new BucketProfileUpdateMessage()); registerDSFID(PR_ALL_BUCKET_PROFILES_UPDATE_MESSAGE, () -> new AllBucketProfilesUpdateMessage()); registerDSFID(PR_BUCKET_SIZE_MESSAGE, () -> new BucketSizeMessage()); registerDSFID(PR_CONTAINS_KEY_VALUE_MESSAGE,
private AllBucketProfilesUpdateMessage(Set recipients, int partitionedRegionId, int processorId, Map<Integer, BucketAdvisor.BucketProfile> profiles) { setRecipients(recipients); this.processorId = processorId; this.prId = partitionedRegionId; this.profiles = profiles; }
receipients = pr.getRegionAdvisor().adviseAllPRNodes(); ReplyProcessor21 reply = AllBucketProfilesUpdateMessage.send( receipients, pr.getDistributionManager(), pr.getPRId(), profiles, true);