/** * Returns a set of all the members of the distributed system excluding locators. */ @SuppressWarnings("unchecked") public static Set<DistributedMember> getAllNormalMembers(InternalCache cache) { return new HashSet<DistributedMember>( cache.getDistributionManager().getNormalDistributionManagerIds()); }
/** * Finds all Servers which belong to the given arrays of groups or members. Does not include * locators. */ public static Set<DistributedMember> findMembers(String[] groups, String[] members, DistributionManager distributionManager) { Set<DistributedMember> allNormalMembers = new HashSet<DistributedMember>( distributionManager.getNormalDistributionManagerIds()); return findMembers(allNormalMembers, groups, members); }
public MemberFunctionExecutor(DistributedSystem s) { this.ds = (InternalDistributedSystem) s; this.members = this.ds.getDistributionManager().getNormalDistributionManagerIds(); }
private void sendSerialMessageToAll() { if (getCache() instanceof GemFireCacheImpl) { try { org.apache.geode.distributed.internal.SerialAckedMessage msg = new org.apache.geode.distributed.internal.SerialAckedMessage(); msg.send(getCache().getDistributionManager().getNormalDistributionManagerIds(), false); } catch (Exception e) { throw new RuntimeException("Unable to send serial message due to exception", e); } } }
&& cachelessNodes.isEmpty()) { if (region.isInternalRegion()) { if (mgr.getNormalDistributionManagerIds().size() > 1) {