static List constructAndGetFunctionTasks(final PoolImpl pool, final Function function, Object args, MemberMappedArgument memberMappedArg, byte hasResult, ResultCollector rc, boolean isFnSerializationReqd, UserAttributes attributes) { final List<SingleHopOperationCallable> tasks = new ArrayList<SingleHopOperationCallable>(); List<ServerLocation> servers = pool.getConnectionSource().getAllServers(); for (ServerLocation server : servers) { final AbstractOp op = new ExecuteFunctionOpImpl(function, args, memberMappedArg, hasResult, rc, isFnSerializationReqd, (byte) 0, null/* onGroups does not use single-hop for now */, false, false); SingleHopOperationCallable task = new SingleHopOperationCallable(server, pool, op, attributes); tasks.add(task); } return tasks; }
static List constructAndGetFunctionTasks(final PoolImpl pool, final String functionId, Object args, MemberMappedArgument memberMappedArg, byte hasResult, ResultCollector rc, boolean isFnSerializationReqd, boolean isHA, boolean optimizeForWrite, UserAttributes properties) { final List<SingleHopOperationCallable> tasks = new ArrayList<SingleHopOperationCallable>(); List<ServerLocation> servers = pool.getConnectionSource().getAllServers(); for (ServerLocation server : servers) { final AbstractOp op = new ExecuteFunctionOpImpl(functionId, args, memberMappedArg, hasResult, rc, isFnSerializationReqd, isHA, optimizeForWrite, (byte) 0, null/* onGroups does not use single-hop for now */, false, false); SingleHopOperationCallable task = new SingleHopOperationCallable(server, pool, op, properties); tasks.add(task); } return tasks; }
+ op.getMessage() + " to all servers using pool: " + pool); servers = pool.getConnectionSource().getAllServers(); Iterator i = servers.iterator(); while (i.hasNext()) {
+ op.getMessage() + " to all servers using pool: " + pool); servers = pool.getConnectionSource().getAllServers(); Iterator i = servers.iterator(); while (i.hasNext()) {