geode-core/src/main/java/org/apache/geode/management/internal/cli/CliUtil.java
public static ResultCollector<?, ?> executeFunction(final Function function, Object args,
      final DistributedMember targetMember) {
    Execution execution;

    if (args != null) {
      execution = FunctionService.onMember(targetMember).setArguments(args);
    } else {
      execution = FunctionService.onMember(targetMember);
    }

    ((AbstractExecution) execution).setIgnoreDepartedMembers(true);
    return execution.execute(function);
  }
/***
   * Executes a function with arguments on a member , ignores the departed member.
   * 
   * @param function Function to be executed
   * @param args Arguments passed to the function, pass null if you wish to pass no arguments to the
   *        function.
   * @param targetMember Member on which the function is to be executed.
   * @return ResultCollector
   */
Executes a function with arguments on a member , ignores the departed member.

@param function Function to be executed
@param args Arguments passed to the function, pass null if you wish to pass no arguments to the
function.
@param targetMember Member on which the function is to be executed.
Executes a function with arguments on a member ignores the departed member . @param function Function to be executed @param args Arguments passed to the function pass null if you wish to pass no arguments to the function . @param targetMember Member on which the function is to be executed .
public static ResultCollector<?, ?> executeFunction(final Function function, Object args,
      final DistributedMember targetMember) {
    Execution execution;
    if (args != null) {
      execution = FunctionService.onMember(targetMember).setArguments(args);
    } else {
      execution = FunctionService.onMember(targetMember);
    }
    ((AbstractExecution) execution).setIgnoreDepartedMembers(true);
    return execution.execute(function);
  }
public static ResultCollector < ? , ? > executeFunction ( final Function function , Object args , final DistributedMember targetMember ) { Execution execution ; if ( args != null ) { execution = FunctionService . onMember ( targetMember ) . setArguments ( args ) ; } else { execution = FunctionService . onMember ( targetMember ) ; } ( ( AbstractExecution ) execution ) . setIgnoreDepartedMembers ( true ) ; return execution . execute ( function ) ; }
Executes a function with arguments on a member , ignores the departed member.
Executes a function with arguments on a member ignores the departed member .