Skip to main content

execute function

Execute functions on members or regions.

execute function

Execute the function with the specified ID. By default, the function executes on all members.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.

Syntax:

execute function --id=value [--groups=value(,value)*]
[--members=value(,value)*] [--region=value]
[--arguments=value(,value)*] [--result-collector=value] [--filter=value]

‑‑idRequired. ID of the function to execute.
‑‑groupsOne or more groups of members on which this function should be executed.
‑‑membersName/ID of the member(s) on which the function will be executed.
‑‑regionRegion on which the data dependent function will be executed.
‑‑argumentsArguments to the function in comma separated string format.
‑‑result-collectorFully qualified class name of the ResultCollector to instantiate for gathering results.
‑‑filterKey list which causes the function to only be executed on members which have entries with these keys.
Table 1. Execute Function Parameters

Example Commands:

execute function --id=InterestCalculations --region=/InterestRegion
execute function --id=InterestCalculations --members=server1
execute function --id=InterestCalculations --groups=Group1