/** * Returns an array of all the groups of this cache 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>(); if (!this.isGatewayReceiver) { 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(); InternalCache cache = getCache(); List servers; servers = cache.getCacheServers(); Collections.addAll(localServerGroups, MemberAttributes.parseGroups(null, cache.getInternalDistributedSystem().getConfig().getGroups())); for (Object object : servers) { CacheServerImpl server = (CacheServerImpl) object; if (server.isRunning() && (server.getExternalAddress() != null)) { Collections.addAll(localServerGroups, server.getGroups()); } } return localServerGroups; }
private String getConfig() { ClientSubscriptionConfig csc = this.getClientSubscriptionConfig(); String str = "port=" + getPort() + " max-connections=" + getMaxConnections() + " max-threads=" + getMaxThreads() + " notify-by-subscription=" + getNotifyBySubscription() + " socket-buffer-size=" + getSocketBufferSize() + " maximum-time-between-pings=" + getMaximumTimeBetweenPings() + " maximum-message-count=" + getMaximumMessageCount() + " message-time-to-live=" + getMessageTimeToLive() + " eviction-policy=" + csc.getEvictionPolicy() + " capacity=" + csc.getCapacity() + " overflow directory="; if (csc.getDiskStoreName() != null) { str += csc.getDiskStoreName(); } else { str += csc.getOverflowDirectory(); } str += " groups=" + Arrays.asList(getGroups()) + " loadProbe=" + loadProbe + " loadPollInterval=" + loadPollInterval + " tcpNoDelay=" + tcpNoDelay; return str; }
this.maximumMessageCount = impl.getMaximumMessageCount(); this.messageTimeToLive = impl.getMessageTimeToLive(); this.groups = impl.getGroups(); this.loadProbe = getProbe(impl.getLoadProbe()); this.loadPollInterval = impl.getLoadPollInterval();