Example usage for org.springframework.data.gemfire.client ClientCacheFactoryBean getProperties

List of usage examples for org.springframework.data.gemfire.client ClientCacheFactoryBean getProperties

Introduction

In this page you can find the example usage for org.springframework.data.gemfire.client ClientCacheFactoryBean getProperties.

Prototype

public Properties getProperties() 

Source Link

Document

Returns a reference to Pivotal GemFire/Apache Geode Properties used to configure the cache.

Usage

From source file:org.spring.data.gemfire.config.DistributedSystemValidationBeanPostProcessor.java

@Override
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
    if (bean instanceof Pool) {
        ClientCacheFactoryBean clientCacheFactoryBean = getBeanFactory().getBean(ClientCacheFactoryBean.class);

        Properties existingGemFireProperties = InternalDistributedSystem.getAnyInstance().getConfig()
                .toProperties();/*from w w w .  j  a v a  2  s  .  co  m*/

        log("GemFire Pool EXISTING (DistributedSystem) System Properties", existingGemFireProperties);

        Properties startupGemFireProperties = clientCacheFactoryBean.getProperties();

        log("GemFire ClientCache STARTUP (DistributedSystem) System Properties", startupGemFireProperties);

        logDiff("EXISTING", existingGemFireProperties, "STARTUP", startupGemFireProperties);
    }

    return bean;
}