/** * Configures the group that all servers this pool connects to must belong to. * * @param group the server group that this pool will connect to. If <code>null</code> or * <code>""</code> then all servers will be connected to. * @return a reference to <code>this</code> */ public ClientCacheFactory setPoolServerGroup(String group) { getPoolFactory().setServerGroup(group); return this; }
protected void startBridgeClient(final String group, final String host, final int port, final String[] regions) throws Exception { PoolFactoryImpl pf = new PoolFactoryImpl(null); pf.addLocator(host, port).setServerGroup(group).setPingInterval(200) .setSubscriptionEnabled(true).setSubscriptionRedundancy(-1); startBridgeClient(pf.getPoolAttributes(), regions); }
protected void startBridgeClientInVM(VM vm, final String group, final String host, final int port, final String... regions) throws Exception { PoolFactoryImpl pf = new PoolFactoryImpl(null); pf.addLocator(host, port).setServerGroup(group).setPingInterval(200) .setSubscriptionEnabled(true).setSubscriptionRedundancy(-1); startBridgeClientInVM(vm, pf.getPoolAttributes(), regions); }
f.setServerGroup(v.trim());
pf.setServerGroup(serverGroup);
.thenAnswer(newSetter(retryAttempts, mockPoolFactory)); when(mockPoolFactory.setServerGroup(anyString())) .thenAnswer(newSetter(serverGroup, mockPoolFactory));
mockPoolFactory.setServerGroup(invocation.getArgument(0)); return clientCacheFactorySpy; }).when(clientCacheFactorySpy).setPoolServerGroup(anyString());
it.setReadTimeout(this.readTimeout); it.setRetryAttempts(this.retryAttempts); it.setServerGroup(this.serverGroup); it.setSocketBufferSize(this.socketBufferSize); it.setSocketConnectTimeout(this.socketConnectTimeout);
it.setReadTimeout(this.readTimeout); it.setRetryAttempts(this.retryAttempts); it.setServerGroup(this.serverGroup); it.setSocketBufferSize(this.socketBufferSize); it.setSocketConnectTimeout(this.socketConnectTimeout);