/** * Returns an array of all the groups of this bridge server. * This includes those from the groups gemfire property * and those explicitly added to this server. */ public String[] getCombinedGroups() { ArrayList<String> groupList = new ArrayList<String>(); for (String g: MemberAttributes.parseGroups(null, getSystem().getConfig().getGroups())) { if (!groupList.contains(g)) { groupList.add(g); } } for (String g: getGroups()) { if (!groupList.contains(g)) { groupList.add(g); } } String[] groups = new String[groupList.size()]; return groupList.toArray(groups); }
/** * Returns an array of all the groups of this bridge server. * This includes those from the groups gemfire property * and those explicitly added to this server. */ public String[] getCombinedGroups() { ArrayList<String> groupList = new ArrayList<String>(); for (String g: MemberAttributes.parseGroups(null, getSystem().getConfig().getGroups())) { if (!groupList.contains(g)) { groupList.add(g); } } for (String g: getGroups()) { if (!groupList.contains(g)) { groupList.add(g); } } String[] groups = new String[groupList.size()]; return groupList.toArray(groups); }
public Set<String> getLocalServerGroups() { Set<String> localServerGroups = new HashSet(); GemFireCacheImpl c = getCache(); List servers = null; servers = c.getCacheServers(); Collections.addAll(localServerGroups, MemberAttributes.parseGroups(null, c.getSystem().getConfig().getGroups())); for (Object object : servers) { CacheServerImpl server = (CacheServerImpl)object; if (server.isRunning() && (server.getExternalAddress() != null)) { Collections.addAll(localServerGroups, server.getGroups()); } } return localServerGroups; } /**
public Set<String> getLocalServerGroups() { Set<String> localServerGroups = new HashSet(); GemFireCacheImpl c = getCache(); List servers = null; servers = c.getCacheServers(); Collections.addAll(localServerGroups, MemberAttributes.parseGroups(null, c.getSystem().getConfig().getGroups())); for (Object object : servers) { BridgeServerImpl server = (BridgeServerImpl)object; if (server.isRunning() && (server.getExternalAddress() != null)) { Collections.addAll(localServerGroups, server.getGroups()); } } return localServerGroups; } /**
MemberAttributes.parseGroups(config.getRoles(), config.getGroups()), dac);
DistributionManager.LONER_DM_TYPE, -1, name, MemberAttributes.parseGroups(config.getRoles(), config.getGroups()), dac); result = new InternalDistributedMember(host, lonerPort, name, uniqueString);
getDistributionManagerType(), -1, config.getName(), MemberAttributes.parseGroups(config.getRoles(), config.getGroups()), dac);
-1/*view id - not known at this time*/, config.getName(), MemberAttributes.parseGroups(config.getRoles(), config.getGroups()), dca); localAddress = new InternalDistributedMember(jgAddress.getInetAddress(),