public class TestFunction
extends com.gemstone.gemfire.cache.execute.FunctionAdapter
implements com.gemstone.gemfire.internal.cache.xmlcache.Declarable2
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MEMBER_FUNCTION |
static java.lang.String |
TEST_FUNCTION_EXCEPTION |
static java.lang.String |
TEST_FUNCTION_HA |
static java.lang.String |
TEST_FUNCTION_HA_REGION |
static java.lang.String |
TEST_FUNCTION_HA_SERVER |
static java.lang.String |
TEST_FUNCTION_LASTRESULT |
static java.lang.String |
TEST_FUNCTION_NO_LASTRESULT |
static java.lang.String |
TEST_FUNCTION_NONHA_REGION |
static java.lang.String |
TEST_FUNCTION_NONHA_SERVER |
static java.lang.String |
TEST_FUNCTION_ONSERVER_REEXECUTE_EXCEPTION |
static java.lang.String |
TEST_FUNCTION_REEXECUTE_EXCEPTION |
static java.lang.String |
TEST_FUNCTION_RESULT_SENDER |
static java.lang.String |
TEST_FUNCTION_RETURN_ARGS |
static java.lang.String |
TEST_FUNCTION_RUNNING_FOR_LONG_TIME |
static java.lang.String |
TEST_FUNCTION_SEND_EXCEPTION |
static java.lang.String |
TEST_FUNCTION_SOCKET_TIMEOUT |
static java.lang.String |
TEST_FUNCTION_THROW_EXCEPTION |
static java.lang.String |
TEST_FUNCTION_TIMEOUT |
static java.lang.String |
TEST_FUNCTION1 |
static java.lang.String |
TEST_FUNCTION10 |
static java.lang.String |
TEST_FUNCTION2 |
static java.lang.String |
TEST_FUNCTION3 |
static java.lang.String |
TEST_FUNCTION4 |
static java.lang.String |
TEST_FUNCTION5 |
static java.lang.String |
TEST_FUNCTION6 |
static java.lang.String |
TEST_FUNCTION7 |
static java.lang.String |
TEST_FUNCTION8 |
static java.lang.String |
TEST_FUNCTION9 |
| Constructor and Description |
|---|
TestFunction() |
TestFunction(boolean haveResults,
java.lang.String id) |
TestFunction(boolean haveResults,
java.lang.String id,
boolean hashCodeId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
void |
execute(com.gemstone.gemfire.cache.execute.FunctionContext context)
Application execution implementation
|
void |
execute1(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
execute2(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
execute3(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
execute4(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
execute5(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
execute8(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
execute9(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
executeFunctionReturningArgs(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
executeFunctionRunningForLongTime(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
executeHA(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
executeHAAndNonHAOnRegion(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
executeHAAndNonHAOnServer(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
executeMemberFunction(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
executeSocketTimeOut(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
executeTimeOut(com.gemstone.gemfire.cache.execute.FunctionContext context) |
void |
executeWithNoLastResult(com.gemstone.gemfire.cache.execute.FunctionContext context) |
java.util.Properties |
getConfig() |
java.lang.String |
getId()
Get the function identifier, used by clients to invoke this function
|
boolean |
hasResult() |
void |
init(java.util.Properties props) |
boolean |
isHA() |
public static final java.lang.String TEST_FUNCTION10
public static final java.lang.String TEST_FUNCTION9
public static final java.lang.String TEST_FUNCTION8
public static final java.lang.String TEST_FUNCTION6
public static final java.lang.String TEST_FUNCTION5
public static final java.lang.String TEST_FUNCTION7
public static final java.lang.String TEST_FUNCTION4
public static final java.lang.String TEST_FUNCTION3
public static final java.lang.String TEST_FUNCTION2
public static final java.lang.String TEST_FUNCTION1
public static final java.lang.String TEST_FUNCTION_EXCEPTION
public static final java.lang.String TEST_FUNCTION_RESULT_SENDER
public static final java.lang.String MEMBER_FUNCTION
public static final java.lang.String TEST_FUNCTION_SOCKET_TIMEOUT
public static final java.lang.String TEST_FUNCTION_TIMEOUT
public static final java.lang.String TEST_FUNCTION_HA
public static final java.lang.String TEST_FUNCTION_HA_SERVER
public static final java.lang.String TEST_FUNCTION_NONHA_SERVER
public static final java.lang.String TEST_FUNCTION_NONHA_REGION
public static final java.lang.String TEST_FUNCTION_HA_REGION
public static final java.lang.String TEST_FUNCTION_REEXECUTE_EXCEPTION
public static final java.lang.String TEST_FUNCTION_ONSERVER_REEXECUTE_EXCEPTION
public static final java.lang.String TEST_FUNCTION_NO_LASTRESULT
public static final java.lang.String TEST_FUNCTION_LASTRESULT
public static final java.lang.String TEST_FUNCTION_SEND_EXCEPTION
public static final java.lang.String TEST_FUNCTION_THROW_EXCEPTION
public static final java.lang.String TEST_FUNCTION_RETURN_ARGS
public static final java.lang.String TEST_FUNCTION_RUNNING_FOR_LONG_TIME
public TestFunction()
public TestFunction(boolean haveResults,
java.lang.String id)
public TestFunction(boolean haveResults,
java.lang.String id,
boolean hashCodeId)
public void execute(com.gemstone.gemfire.cache.execute.FunctionContext context)
execute in interface com.gemstone.gemfire.cache.execute.Functionexecute in class com.gemstone.gemfire.cache.execute.FunctionAdapterpublic void executeFunctionRunningForLongTime(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void executeFunctionReturningArgs(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void execute1(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void execute2(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void execute3(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void execute4(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void execute5(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void executeMemberFunction(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void execute8(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void execute9(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void executeSocketTimeOut(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void executeTimeOut(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void executeHA(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void executeHAAndNonHAOnServer(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void executeHAAndNonHAOnRegion(com.gemstone.gemfire.cache.execute.FunctionContext context)
public void executeWithNoLastResult(com.gemstone.gemfire.cache.execute.FunctionContext context)
public java.lang.String getId()
getId in interface com.gemstone.gemfire.cache.execute.FunctiongetId in interface com.gemstone.gemfire.lang.Identifiable<java.lang.String>getId in class com.gemstone.gemfire.cache.execute.FunctionAdapterpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean hasResult()
hasResult in interface com.gemstone.gemfire.cache.execute.FunctionhasResult in class com.gemstone.gemfire.cache.execute.FunctionAdapterpublic java.util.Properties getConfig()
getConfig in interface com.gemstone.gemfire.internal.cache.xmlcache.Declarable2public void init(java.util.Properties props)
init in interface com.gemstone.gemfire.cache.Declarablepublic boolean isHA()
isHA in interface com.gemstone.gemfire.cache.execute.FunctionisHA in class com.gemstone.gemfire.cache.execute.FunctionAdapterCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.