exec_fun/5 is an Erlang function exported by "age" module. This routine is used to request the Node's Agent to commence local and/or remote procedure call. You can invoke a published function from the Grid by selecting the Service identifier, the function name and to specify its formal parameters. Note that this is enough for AGE to commence the best course of actions in order to execute this function on the remote nodes and to return the result back to you. Of course, you can focus your request by selecting particular nodes and the request mode at your own discretion. This routines does not guarantee that the requested function shall be executed. See to code sample below - it shows that the Grid is requested to execute function directory_list by service controller named age_files_service on nodes 24502152 and 91995052. However, only node 24502152 can handle effectively this request but node 91995052 reports that the requested service is unavailable (unpublished). |
|
|