Package com.gemstone.gemfire.cache.execute

Examples of com.gemstone.gemfire.cache.execute.Function


  @Test
  public void testAnnotatedFunctions() {

    assertTrue(FunctionService.isRegistered("foo"));

    Function function = FunctionService.getFunction("foo");
    assertFalse(function.isHA());
    assertFalse(function.optimizeForWrite());
    assertFalse(function.hasResult());

    assertTrue(FunctionService.isRegistered("bar"));
    function = FunctionService.getFunction("bar");
    assertTrue(function.isHA());
    assertFalse(function.optimizeForWrite());
    assertTrue(function.hasResult());

    assertTrue(FunctionService.isRegistered("foo2"));
    function = FunctionService.getFunction("foo2");
    assertTrue(function.isHA());
    assertTrue(function.optimizeForWrite());
    assertTrue(function.hasResult());

    assertTrue(FunctionService.isRegistered("injectFilter"));
    function = FunctionService.getFunction("injectFilter");
    assertTrue(function.isHA());
    assertTrue(function.optimizeForWrite());
    assertTrue(function.hasResult());
  }
View Full Code Here

TOP

Related Classes of com.gemstone.gemfire.cache.execute.Function

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.