assertNotNull(function); TestResultSender resultSender = new TestResultSender(); FunctionContext functionContext = new FunctionContextImpl(function.getId(), null, resultSender); function.execute(functionContext); assertEquals("IN", (String) resultSender.getResults());
stats.startFunctionExecution(this.functionObject.hasResult()); if (logger.isDebugEnabled()) { logger.debug("Executing Function: {} on remote member with context: {}", this.functionObject.getId(), context.toString());
if (logger.fineEnabled()) { logger.fine("Executing Function: " + this.functionObject.getId() + " on remote member with context: " + context.toString());
assertNotNull(function); TestResultSender resultSender = new TestResultSender(); FunctionContext functionContext = new FunctionContextImpl(function.getId(), null, resultSender); function.execute(functionContext); assertEquals("PARENT:USES", (String) resultSender.getResults());
assertNotNull(function); TestResultSender resultSender = new TestResultSender(); function.execute(new FunctionContextImpl(function.getId(), null, resultSender)); assertEquals("NOPARMSXMLv1", (String) resultSender.getResults()); function.execute(new FunctionContextImpl(function.getId(), null, resultSender)); assertEquals("NOPARMSXMLv2", (String) resultSender.getResults());
assertNotNull(function); TestResultSender resultSender = new TestResultSender(); function.execute(new FunctionContextImpl(function.getId(), null, resultSender)); assertEquals("NOPARMSv1", (String) resultSender.getResults()); function.execute(new FunctionContextImpl(function.getId(), null, resultSender)); assertEquals("NOPARMSv2", (String) resultSender.getResults());
final FunctionContext context = new FunctionContextImpl(function.getId(), getArgumentsForMember(localVM.getId()), resultSender); boolean isTx = false;
assertNotNull(function); TestResultSender resultSender = new TestResultSender(); function.execute(new FunctionContextImpl(function.getId(), null, resultSender)); assertEquals("DOGv1", (String) resultSender.getResults()); function.execute(new FunctionContextImpl(function.getId(), null, resultSender)); assertEquals("CATv1", (String) resultSender.getResults()); function.execute(new FunctionContextImpl(function.getId(), null, resultSender)); assertEquals("DOGv2", (String) resultSender.getResults()); function.execute(new FunctionContextImpl(function.getId(), null, resultSender)); assertEquals("CATv2", (String) resultSender.getResults()); function.execute(new FunctionContextImpl(function.getId(), null, resultSender)); assertEquals("DOGv3", (String) resultSender.getResults()); function.execute(new FunctionContextImpl(function.getId(), null, resultSender)); assertEquals("DOGv3", (String) resultSender.getResults()); function.execute(new FunctionContextImpl(function.getId(), null, resultSender)); assertEquals("BIRDv3", (String) resultSender.getResults());
if (!remoteOnly) { final FunctionContext context = new FunctionContextImpl(function.getId(), getArgumentsForMember(localVM.getId()), resultSender); executeFunctionOnLocalNode(function, context, resultSender, dm, tx);
assertNotNull(function); TestResultSender resultSender = new TestResultSender(); FunctionContext functionContext = new FunctionContextImpl(function.getId(), null, resultSender); function.execute(functionContext); assertEquals("GOODv1", (String) resultSender.getResults()); assertNotNull(function); resultSender = new TestResultSender(); functionContext = new FunctionContextImpl(function.getId(), null, resultSender); function.execute(functionContext); assertEquals("GOODv2", (String) resultSender.getResults());
context = new FunctionContextImpl(functionObject.getId(), memberMappedArg.getArgumentsForMember(localVM.getId()), resultSender); context = new FunctionContextImpl(functionObject.getId(), args, resultSender);
context = new FunctionContextImpl(functionObject.getId(), memberMappedArg.getArgumentsForMember(localVM.getId()), resultSender, isReexecute); context = new FunctionContextImpl(functionObject.getId(), args, resultSender, isReexecute);
context = new FunctionContextImpl(functionObject.getId(), memberMappedArg.getArgumentsForMember(localVM.getId()), resultSender, isReexecute); context = new FunctionContextImpl(functionObject.getId(), args, resultSender, isReexecute);
context = new FunctionContextImpl(functionObject.getId(), memberMappedArg.getArgumentsForMember(localVM.getId()), resultSender); context = new FunctionContextImpl(functionObject.getId(), args, resultSender);
context = new FunctionContextImpl(functionObject.getId(), memberMappedArg.getArgumentsForMember(localVM.getId()), resultSender, isReexecute); context = new FunctionContextImpl(functionObject.getId(), args, resultSender, isReexecute);
context = new FunctionContextImpl(functionObject.getId(), memberMappedArg.getArgumentsForMember(localVM.getId()), resultSender, isReexecute); context = new FunctionContextImpl(functionObject.getId(), args, resultSender, isReexecute);