Package org.springframework.data.gemfire.function.execution

Examples of org.springframework.data.gemfire.function.execution.GemfireOnServersFunctionTemplate


  public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
    createClientRegions(beanFactory);
  }

  private void createClientRegions(ConfigurableListableBeanFactory beanFactory) {
    GemfireFunctionOperations functionTemplate = new GemfireOnServersFunctionTemplate(cache);

    Iterable<String> regionNames = functionTemplate.executeAndExtract(new ListRegionsOnServerFunction());

    ClientRegionFactory<?, ?> clientRegionFactory = null;

    if (regionNames != null && regionNames.iterator().hasNext()) {
      clientRegionFactory = cache.createClientRegionFactory(ClientRegionShortcut.PROXY);
View Full Code Here

TOP

Related Classes of org.springframework.data.gemfire.function.execution.GemfireOnServersFunctionTemplate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.