private ResultCollector executeOnServer(String functionId, ResultCollector rc, byte hasResult, boolean isHA, boolean optimizeForWrite) { FunctionStats stats = FunctionStats.getFunctionStats(functionId, null); try { validateExecution(null, null); long start = stats.startTime(); stats.startFunctionExecution(true); ExecuteFunctionOp.execute(this.pool, functionId,this, args, memberMappedArg, this.allServers, hasResult, rc, this.isFnSerializationReqd, isHA, optimizeForWrite, UserAttributes.userAttributes.get(), groups); stats.endFunctionExecution(start, true); rc.endResults(); return rc; } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(true); throw functionException; } catch(ServerConnectivityException exception){ throw exception; } catch (Exception exception) { stats.endFunctionExecutionWithException(true); throw new FunctionException(exception); } }
private ResultCollector executeOnServer(String functionId, ResultCollector rc, byte hasResult, boolean isHA, boolean optimizeForWrite) { FunctionStats stats = FunctionStats.getFunctionStats(functionId, null); try { validateExecution(null, null); long start = stats.startTime(); stats.startFunctionExecution(true); ExecuteFunctionOp.execute(this.pool, functionId,this, args, memberMappedArg, this.allServers, hasResult, rc, this.isFnSerializationReqd, isHA, optimizeForWrite, UserAttributes.userAttributes.get(), groups); stats.endFunctionExecution(start, true); rc.endResults(); return rc; } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(true); throw functionException; } catch(ServerConnectivityException exception){ throw exception; } catch (Exception exception) { stats.endFunctionExecutionWithException(true); throw new FunctionException(exception); } }
FunctionStats stats = FunctionStats.getFunctionStats(function.getId(), dm.getSystem()); try { long start = stats.startTime(); stats.startFunctionExecution(function.hasResult()); function.execute(context);
private ResultCollector executeOnServer(Function function, ResultCollector rc, byte hasResult) { FunctionStats stats = FunctionStats.getFunctionStats(function.getId(), null); try { validateExecution(function, null); long start = stats.startTime(); stats.startFunctionExecution(true); ExecuteFunctionOp.execute(this.pool, function, this, args, memberMappedArg, this.allServers, hasResult, rc, this.isFnSerializationReqd, UserAttributes.userAttributes.get(), groups); stats.endFunctionExecution(start, true); rc.endResults(); return rc; } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(true); throw functionException; } catch(ServerConnectivityException exception){ throw exception; } catch (Exception exception) { stats.endFunctionExecutionWithException(true); throw new FunctionException(exception); } }
private ResultCollector executeOnServer(Function function, ResultCollector rc, byte hasResult) { FunctionStats stats = FunctionStats.getFunctionStats(function.getId(), null); try { validateExecution(function, null); long start = stats.startTime(); stats.startFunctionExecution(true); ExecuteFunctionOp.execute(this.pool, function, this, args, memberMappedArg, this.allServers, hasResult, rc, this.isFnSerializationReqd, UserAttributes.userAttributes.get(), groups); stats.endFunctionExecution(start, true); rc.endResults(); return rc; } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(true); throw functionException; } catch(ServerConnectivityException exception){ throw exception; } catch (Exception exception) { stats.endFunctionExecutionWithException(true); throw new FunctionException(exception); } }
private void executeOnServerNoAck(String functionId, byte hasResult, boolean isHA, boolean optimizeForWrite) { FunctionStats stats = FunctionStats.getFunctionStats(functionId, null); try { validateExecution(null, null); long start = stats.startTime(); stats.startFunctionExecution(false); ExecuteFunctionNoAckOp.execute(this.pool, functionId, args, memberMappedArg, this.allServers, hasResult, this.isFnSerializationReqd, isHA, optimizeForWrite, groups); stats.endFunctionExecution(start, false); } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(false); throw functionException; } catch(ServerConnectivityException exception){ throw exception; } catch (Exception exception) { stats.endFunctionExecutionWithException(false); throw new FunctionException(exception); } }
private void executeOnServerNoAck(String functionId, byte hasResult, boolean isHA, boolean optimizeForWrite) { FunctionStats stats = FunctionStats.getFunctionStats(functionId, null); try { validateExecution(null, null); long start = stats.startTime(); stats.startFunctionExecution(false); ExecuteFunctionNoAckOp.execute(this.pool, functionId, args, memberMappedArg, this.allServers, hasResult, this.isFnSerializationReqd, isHA, optimizeForWrite, groups); stats.endFunctionExecution(start, false); } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(false); throw functionException; } catch(ServerConnectivityException exception){ throw exception; } catch (Exception exception) { stats.endFunctionExecutionWithException(false); throw new FunctionException(exception); } }
private void executeOnServerNoAck(Function function, byte hasResult) { FunctionStats stats = FunctionStats.getFunctionStats(function.getId(), null); try { validateExecution(function, null); long start = stats.startTime(); stats.startFunctionExecution(false); ExecuteFunctionNoAckOp.execute(this.pool, function, args, memberMappedArg, this.allServers, hasResult, this.isFnSerializationReqd, groups); stats.endFunctionExecution(start, false); } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(false); throw functionException; } catch(ServerConnectivityException exception){ throw exception; } catch (Exception exception) { stats.endFunctionExecutionWithException(false); throw new FunctionException(exception); } }
private void executeOnServerNoAck(Function function, byte hasResult) { FunctionStats stats = FunctionStats.getFunctionStats(function.getId(), null); try { validateExecution(function, null); long start = stats.startTime(); stats.startFunctionExecution(false); ExecuteFunctionNoAckOp.execute(this.pool, function, args, memberMappedArg, this.allServers, hasResult, this.isFnSerializationReqd, groups); stats.endFunctionExecution(start, false); } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(false); throw functionException; } catch(ServerConnectivityException exception){ throw exception; } catch (Exception exception) { stats.endFunctionExecutionWithException(false); throw new FunctionException(exception); } }
long start = stats.startTime(); stats.startFunctionExecution(function.hasResult()); if (logger.isDebugEnabled()) {
private void executeOnServerNoAck(String functionId, byte hasResult, boolean isHA, boolean optimizeForWrite) throws FunctionException { ServerRegionProxy srp = getServerRegionProxy(); FunctionStats stats = FunctionStats.getFunctionStats(functionId, this.region.getSystem()); try { validateExecution(null, null); long start = stats.startTime(); stats.startFunctionExecution(false); srp.executeFunctionNoAck(this.region.getFullPath(), functionId, this, hasResult, isHA, optimizeForWrite, false); stats.endFunctionExecution(start, false); } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(false); throw functionException; } catch (Exception exception) { stats.endFunctionExecutionWithException(false); throw new FunctionException(exception); } }
private ResultCollector executeOnServer(String functionId, ResultCollector collector, byte hasResult, boolean isHA, boolean optimizeForWrite) throws FunctionException { ServerRegionProxy srp = getServerRegionProxy(); FunctionStats stats = FunctionStats.getFunctionStats(functionId, this.region.getSystem()); try { validateExecution(null, null); long start = stats.startTime(); stats.startFunctionExecution(true); srp.executeFunction(this.region.getFullPath(), functionId, this, collector, hasResult, isHA, optimizeForWrite, false); stats.endFunctionExecution(start, true); return collector; } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(true); throw functionException; } catch (Exception exception) { stats.endFunctionExecutionWithException(true); throw new FunctionException(exception); } }
private void executeOnServerNoAck(String functionId, byte hasResult, boolean isHA, boolean optimizeForWrite) throws FunctionException { ServerRegionProxy srp = getServerRegionProxy(); FunctionStats stats = FunctionStats.getFunctionStats(functionId, this.region.getSystem()); try { validateExecution(null, null); long start = stats.startTime(); stats.startFunctionExecution(false); srp.executeFunctionNoAck(this.region.getFullPath(), functionId, this, hasResult, isHA, optimizeForWrite, false); stats.endFunctionExecution(start, false); } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(false); throw functionException; } catch (Exception exception) { stats.endFunctionExecutionWithException(false); throw new FunctionException(exception); } }
private ResultCollector executeOnServer(String functionId, ResultCollector collector, byte hasResult, boolean isHA, boolean optimizeForWrite) throws FunctionException { ServerRegionProxy srp = getServerRegionProxy(); FunctionStats stats = FunctionStats.getFunctionStats(functionId, this.region.getSystem()); try { validateExecution(null, null); long start = stats.startTime(); stats.startFunctionExecution(true); srp.executeFunction(this.region.getFullPath(), functionId, this, collector, hasResult, isHA, optimizeForWrite, false); stats.endFunctionExecution(start, true); return collector; } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(true); throw functionException; } catch (Exception exception) { stats.endFunctionExecutionWithException(true); throw new FunctionException(exception); } }
private void executeOnServerNoAck(Function function, byte hasResult) throws FunctionException { ServerRegionProxy srp = getServerRegionProxy(); FunctionStats stats = FunctionStats.getFunctionStats(function.getId(), this.region.getSystem()); try { validateExecution(function, null); long start = stats.startTime(); stats.startFunctionExecution(false); srp.executeFunctionNoAck(this.region.getFullPath(), function, this, hasResult, false); stats.endFunctionExecution(start, false); } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(false); throw functionException; } catch (Exception exception) { stats.endFunctionExecutionWithException(false); throw new FunctionException(exception); } }
private void executeOnServerNoAck(Function function, byte hasResult) throws FunctionException { ServerRegionProxy srp = getServerRegionProxy(); FunctionStats stats = FunctionStats.getFunctionStats(function.getId(), this.region.getSystem()); try { validateExecution(function, null); long start = stats.startTime(); stats.startFunctionExecution(false); srp.executeFunctionNoAck(this.region.getFullPath(), function, this, hasResult, false); stats.endFunctionExecution(start, false); } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(false); throw functionException; } catch (Exception exception) { stats.endFunctionExecutionWithException(false); throw new FunctionException(exception); } }
private ResultCollector executeOnServer(Function function, ResultCollector collector, byte hasResult) throws FunctionException { ServerRegionProxy srp = getServerRegionProxy(); FunctionStats stats = FunctionStats.getFunctionStats(function.getId(), this.region.getSystem()); try { validateExecution(function, null); long start = stats.startTime(); stats.startFunctionExecution(true); srp.executeFunction(this.region.getFullPath(), function, this, collector, hasResult, false); stats.endFunctionExecution(start, true); return collector; } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(true); throw functionException; } catch (Exception exception) { stats.endFunctionExecutionWithException(true); throw new FunctionException(exception); } }
private ResultCollector executeOnServer(Function function, ResultCollector collector, byte hasResult) throws FunctionException { ServerRegionProxy srp = getServerRegionProxy(); FunctionStats stats = FunctionStats.getFunctionStats(function.getId(), this.region.getSystem()); try { validateExecution(function, null); long start = stats.startTime(); stats.startFunctionExecution(true); srp.executeFunction(this.region.getFullPath(), function, this, collector, hasResult, false); stats.endFunctionExecution(start, true); return collector; } catch(FunctionException functionException){ stats.endFunctionExecutionWithException(true); throw functionException; } catch (Exception exception) { stats.endFunctionExecutionWithException(true); throw new FunctionException(exception); } }
long start = stats.startTime(); stats.startFunctionExecution(fn.hasResult()); if (logger.isDebugEnabled()) {
long start = stats.startTime(); stats.startFunctionExecution(function.hasResult()); if (logger.fineEnabled()) {