public void add(Properties gemfireProperties) { customGemFireProperties.add(gemfireProperties); }
public void add(Properties gemfireProperties) { customGemFireProperties.add(gemfireProperties); }
/** * Null-safe method to add all the {@link Properties} from the provided {@link PropertiesBuilder} to this builder. * This operation effectively overwrites any properties already set with the same name from the source. * * @param builder source of the {@link Properties} to add to this builder. * @return a reference to this {@link PropertiesBuilder}. * @see org.springframework.data.gemfire.util.PropertiesBuilder */ public PropertiesBuilder add(PropertiesBuilder builder) { return builder != null ? add(builder.build()) : this; }
/** * Null-safe method to add all the {@link Properties} from the provided {@link PropertiesBuilder} to this builder. * This operation effectively overwrites any properties already set with the same name from the source. * * @param builder source of the {@link Properties} to add to this builder. * @return a reference to this {@link PropertiesBuilder}. * @see org.springframework.data.gemfire.util.PropertiesBuilder */ public PropertiesBuilder add(PropertiesBuilder builder) { return builder != null ? add(builder.build()) : this; }
@Bean public ClientCacheFactoryBean clientCache(GemfireSecurityProperties securityProperties, GemfireSslProperties sslProperties) { ClientCacheFactoryBean clientCacheFactoryBean = new ClientCacheFactoryBean(); clientCacheFactoryBean.setUseBeanFactoryLocator(false); clientCacheFactoryBean.setPoolName("gemfirePool"); if (StringUtils.hasText(securityProperties.getUsername()) && StringUtils .hasText(securityProperties.getPassword())) { Properties properties = new Properties(); properties .setProperty(SECURITY_CLIENT, GemfireSecurityProperties.UserAuthInitialize.class.getName() + ".create"); properties.setProperty(SECURITY_USERNAME, securityProperties.getUsername()); properties.setProperty(SECURITY_PASSWORD, securityProperties.getPassword()); clientCacheFactoryBean.setProperties(properties); } if (sslProperties.isSslEnabled()) { PropertiesBuilder pb = new PropertiesBuilder(); pb.add(clientCacheFactoryBean.getProperties()); pb.add(this.toGeodeSslProperties(sslProperties)); clientCacheFactoryBean.setProperties(pb.build()); } clientCacheFactoryBean.setReadyForEvents(true); return clientCacheFactoryBean; }
gemfireProperties.setProperty("locators", locators()); gemfireProperties.setProperty("start-locator", startLocator()); gemfireProperties.add(this.customGemFireProperties);
gemfireProperties.setProperty("locators", locators()); gemfireProperties.setProperty("start-locator", startLocator()); gemfireProperties.add(this.customGemFireProperties);