@Controller(value="functionController") @RequestMapping(value="/v1/functions") public class FunctionAccessController extends AbstractBaseController
Controller| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
REST_API_VERSION |
DEFAULT_ENCODING, NEW_META_DATA_PROPERTY, OLD_META_DATA_PROPERTY, securityService, TYPE_META_DATA_PROPERTY, UTF_8| Constructor and Description |
|---|
FunctionAccessController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<java.lang.String> |
execute(java.lang.String functionId,
java.lang.String region,
java.lang.String[] members,
java.lang.String[] groups,
java.lang.String[] filter,
java.lang.String argsInBody)
Execute a function on Gemfire data node using REST API call.
|
protected java.lang.String |
getRestApiVersion()
Gets the version of the REST API implemented by this @Controller.
|
org.springframework.http.ResponseEntity<?> |
list()
list all registered functions in Gemfire data node
|
casValue, casValue, checkForKeyExist, checkForMultipleKeysExist, checkForQueryIdExist, convert, convert, convert, convertErrorAsJson, convertErrorAsJson, convertJsonArrayIntoPdxCollection, convertJsonToMap, createNamedQuery, decode, decode, deleteNamedQuery, deleteQueryId, deleteValue, deleteValues, deleteValues, generateKey, generateKey, getActualTypeValue, getAllMembersInDS, getCache, getKeys, getMembers, getPdxValues, getQueryIdValue, getQueryService, getQueryStore, getRegion, getValue, getValues, getValues, introspectAndConvert, jsonToObject, jsonToObjectArray, postValue, processQueryResponse, putPdxValues, putValue, putValues, putValues, replaceValue, replaceValue, toUri, updateMultipleKeys, updateNamedQuery, updateSingleKey, validateJsonAndFindType, validateQueryprotected static final java.lang.String REST_API_VERSION
protected java.lang.String getRestApiVersion()
getRestApiVersion in class AbstractBaseController@RequestMapping(method=GET,
produces="application/json")
@ResponseBody
@ResponseStatus(value=OK)
public org.springframework.http.ResponseEntity<?> list()
@RequestMapping(method=POST,
value="/{functionId}",
produces="application/json")
@ResponseBody
@ResponseStatus(value=OK)
public org.springframework.http.ResponseEntity<java.lang.String> execute(@PathVariable(value="functionId")
java.lang.String functionId,
@RequestParam(value="onRegion",required=false)
java.lang.String region,
@RequestParam(value="onMembers",required=false)
java.lang.String[] members,
@RequestParam(value="onGroups",required=false)
java.lang.String[] groups,
@RequestParam(value="filter",required=false)
java.lang.String[] filter,
@RequestBody(required=false)
java.lang.String argsInBody)
functionId - represents function to be executedregion - list of regions on which function to be executed.members - list of nodes on which function to be executed.groups - list of groups on which function to be executed.filter - list of keys which the function will use to determine on which node to execute the function.argsInBody - function argument as a JSON document