Example usage for org.springframework.data.gemfire.function.execution GemfireOnRegionFunctionTemplate executeAndExtract

List of usage examples for org.springframework.data.gemfire.function.execution GemfireOnRegionFunctionTemplate executeAndExtract

Introduction

In this page you can find the example usage for org.springframework.data.gemfire.function.execution GemfireOnRegionFunctionTemplate executeAndExtract.

Prototype

@Override
    public <T> T executeAndExtract(String functionId, Set<?> keys, Object... args) 

Source Link

Usage

From source file:org.spring.data.gemfire.cache.PeerCacheFunctionCreationExecutionTest.java

@Test
public void testRegionSizeOnRegionUsingSpringGemfireOnRegionFunctionTemplate() {
    GemfireOnRegionFunctionTemplate template = new GemfireOnRegionFunctionTemplate(appData);

    assertThat(template.executeAndextract("regionSize", Collections.emptySet(), appData.getName()),
            is(equalTo(EXPECTED_REGION_SIZE)));
}

From source file:org.spring.data.gemfire.cache.ClientCacheFunctionExecutionTest.java

@Test
public void testRegionSizeOnRegionUsingSpringGemfireOnRegionFunctionTemplate() {
    GemfireOnRegionFunctionTemplate template = new GemfireOnRegionFunctionTemplate(appDataProxy);

    assertThat(template.executeAndextract("regionSize", Collections.emptySet(), "AppData"),
            is(equalTo(EXPECTED_REGION_SIZE)));
}