/** * Sets interested clients routing information * @param member on which the client interests are satisfied * @param clients Set containing interested clients with receiveValues=true * @param clientsInv Set containing interested clients with receiveValues=false * @param longIDs whether the client IDs may be long integers */ public void addInterestedClients(InternalDistributedMember member, Set clients, Set clientsInv, boolean longIDs) { this.memberWithFilterInfoExists = true; FilterInfo fInfo = this.serverFilterInfo.get(member); if (fInfo == null){ fInfo = new FilterInfo(); this.serverFilterInfo.put(member, fInfo); } if (clients != null && clients.size() > 0) { fInfo.setInterestedClients(clients); } if (clientsInv != null && clientsInv.size() > 0) { fInfo.setInterestedClientsInv(clientsInv); } if (longIDs) { fInfo.longIDs = longIDs; } }
/** * Sets interested clients routing information * @param member on which the client interests are satisfied * @param clients Set containing interested clients with receiveValues=true * @param clientsInv Set containing interested clients with receiveValues=false * @param longIDs whether the client IDs may be long integers */ public void addInterestedClients(InternalDistributedMember member, Set clients, Set clientsInv, boolean longIDs) { this.memberWithFilterInfoExists = true; FilterInfo fInfo = this.serverFilterInfo.get(member); if (fInfo == null){ fInfo = new FilterInfo(); this.serverFilterInfo.put(member, fInfo); } if (clients != null && clients.size() > 0) { fInfo.setInterestedClients(clients); } if (clientsInv != null && clientsInv.size() > 0) { fInfo.setInterestedClientsInv(clientsInv); } if (longIDs) { fInfo.longIDs = longIDs; } }
fi.setInterestedClients(clients); fi.setInterestedClientsInv(clientsInv);
fi.setInterestedClients(clients); fi.setInterestedClientsInv(clientsInv);
fi.setInterestedClients(clients); fi.setInterestedClientsInv(clientsInv);
/** * Sets the local Interest information. * @param clients interested clients with receiveValues=true. * @param clientsInv interested clients with receiveValues=false; */ public void setLocalInterestedClients(Set clients, Set clientsInv){ if (this.localFilterInfo == null) { this.localFilterInfo = new FilterInfo(); } this.localFilterInfo.setInterestedClients(clients); this.localFilterInfo.setInterestedClientsInv(clientsInv); this.localFilterInfo.filterProcessedLocally = true; this.hasLocalInterestBeenComputed = true; }
/** * Sets the local Interest information. * @param clients interested clients with receiveValues=true. * @param clientsInv interested clients with receiveValues=false; */ public void setLocalInterestedClients(Set clients, Set clientsInv){ if (this.localFilterInfo == null) { this.localFilterInfo = new FilterInfo(); } this.localFilterInfo.setInterestedClients(clients); this.localFilterInfo.setInterestedClientsInv(clientsInv); this.localFilterInfo.filterProcessedLocally = true; this.hasLocalInterestBeenComputed = true; }