@SuppressWarnings("unchecked") public static ClientPartitionAdvisor execute(ExecutablePool pool, String regionFullPath) { AbstractOp op = new GetClientPartitionAttributesOpImpl(regionFullPath); if (logger.isDebugEnabled()) { logger.debug( "GetClientPartitionAttributesOp#execute : Sending GetClientPartitionAttributesOp Message: {} for region: {} to server using pool: {}", op.getMessage(), regionFullPath, pool); } ClientPartitionAdvisor advisor = (ClientPartitionAdvisor) pool.execute(op); if (advisor != null) { advisor.setServerGroup(((PoolImpl) pool).getServerGroup()); } return advisor; }
private ConnectionSource getSourceImpl(LocatorDiscoveryCallback locatorDiscoveryCallback) { List<InetSocketAddress> locators = getLocators(); if (locators.isEmpty()) { return new ExplicitConnectionSourceImpl(getServers()); } else { AutoConnectionSourceImpl source = new AutoConnectionSourceImpl(locators, locatorAddresses, getServerGroup(), socketConnectTimeout); if (locatorDiscoveryCallback != null) { source.setLocatorDiscoveryCallback(locatorDiscoveryCallback); } return source; } }
"subscriptionRedundancyLevel")); if (!getServerGroup().equals(other.getServerGroup())) { throw new RuntimeException( String.format("Pool %s is different", "serverGroup"));
+ (isEmpty(serverGroup) ? "[any servers]" : "[" + getServerGroup() + "]"));
/** * Return true if the given Pool is compatible with these attributes. Currently this does what * equals would but in the future we might decide to weaken the compatibility contract. * * @since GemFire 6.5 */ public boolean isCompatible(Pool p) { if (p == null) return false; return getFreeConnectionTimeout() == p.getFreeConnectionTimeout() && getSocketConnectTimeout() == p.getSocketConnectTimeout() && getLoadConditioningInterval() == p.getLoadConditioningInterval() && getSocketBufferSize() == p.getSocketBufferSize() && getMinConnections() == p.getMinConnections() && getMaxConnections() == p.getMaxConnections() && getIdleTimeout() == p.getIdleTimeout() && getPingInterval() == p.getPingInterval() && getStatisticInterval() == p.getStatisticInterval() && getRetryAttempts() == p.getRetryAttempts() && getThreadLocalConnections() == p.getThreadLocalConnections() && getReadTimeout() == p.getReadTimeout() && getSubscriptionEnabled() == p.getSubscriptionEnabled() && getPRSingleHopEnabled() == p.getPRSingleHopEnabled() && getSubscriptionRedundancy() == p.getSubscriptionRedundancy() && getSubscriptionMessageTrackingTimeout() == p.getSubscriptionMessageTrackingTimeout() && getSubscriptionAckInterval() == p.getSubscriptionAckInterval() && getServerGroup().equals(p.getServerGroup()) && getMultiuserAuthentication() == p.getMultiuserAuthentication() && getLocators().equals(p.getLocators()) && getServers().equals(p.getServers()); }