public FunctionServiceStats getFunctionServiceStats() { if (functionServiceStats == null) { synchronized (this) { if(functionServiceStats == null){ functionServiceStats = new FunctionServiceStats(this, "FunctionExecution"); } } } return functionServiceStats; }
/** * Increments the "FunctionExecutionsCall" stat. */ public void incFunctionExecutionHasResultRunning() { this._stats.incInt(_functionExecutionsHasResultRunningId, 1); aggregateStats.incFunctionExecutionHasResultRunning(); }
/** * Increments the "FunctionExecutionsCompleted" stat. */ public void incFunctionExecutionsCompleted() { this._stats.incInt(_functionExecutionsCompletedId, 1); aggregateStats.incFunctionExecutionsCompleted(); }
public void testPlainCounters() throws InterruptedException { cachePerfStats.incRegions(3); cachePerfStats.incEntryCount(400); cachePerfStats.incGetInitialImageKeysReceived(1); cachePerfStats.incDiskTasksWaiting(); funcServiceStats.incFunctionExecutionsRunning(); funcServiceStats.incFunctionExecutionHasResultRunning(); sample(); assertEquals(3, getTotalRegionCount()); assertEquals(400, getTotalRegionEntryCount()); assertEquals(1, getInitialImageKeysReceived()); assertEquals(1,getNumRunningFunctions()); assertEquals(1,getNumRunningFunctionsHavingResults()); assertEquals(1,getTotalDiskTasksWaiting()); }
/** * Increments the "FunctionExecutionsRunning" stat. */ public void incFunctionExecutionsRunning() { this._stats.incInt(_functionExecutionsRunningId, 1); aggregateStats.incFunctionExecutionsRunning(); }
/** * Increments the "FunctionExecutionsCall" stat. */ public void incFunctionExecutionCalls() { this._stats.incInt(_functionExecutionCallsId, 1); aggregateStats.incFunctionExecutionCalls(); }
/** * Increments the "FunctionExecutionsCall" stat. */ public void incFunctionExecutionExceptions() { this._stats.incInt(_functionExecutionExceptions, 1); aggregateStats.incFunctionExecutionExceptions(); }
public void addFunctionStats(FunctionServiceStats functionServiceStats) { Statistics functionStatistics = functionServiceStats.getStats(); monitor.addStatisticsToMonitor(functionStatistics); }
/** * Increments the "_functionExecutionException" and decrements "_functionExecutionsRunningId" and decrement "_functionExecutionHasResultRunningId" * * @param haveResult */ public void endFunctionExecutionWithException(boolean haveResult) { //Decrement function Executions running. this._stats.incInt(_functionExecutionsRunningId, -1); //Increment number of function excution exceptions this._stats.incInt(_functionExecutionExceptions, 1); if(haveResult){ //Decrement function Executions with haveResult = true running. this._stats.incInt(_functionExecutionsHasResultRunningId, -1); } aggregateStats.endFunctionExecutionWithException(haveResult); }
aggregateStats.endFunctionExecution(start, haveResult);
functionServiceStats.close();
/** * Increments the "FunctionExecutionsRunning" stat. */ public void incFunctionExecutionsRunning() { this._stats.incInt(_functionExecutionsRunningId, 1); aggregateStats.incFunctionExecutionsRunning(); }
/** * Increments the "FunctionExecutionsCall" stat. */ public void incFunctionExecutionCalls() { this._stats.incInt(_functionExecutionCallsId, 1); aggregateStats.incFunctionExecutionCalls(); }
/** * Increments the "FunctionExecutionsCall" stat. */ public void incFunctionExecutionExceptions() { this._stats.incInt(_functionExecutionExceptions, 1); aggregateStats.incFunctionExecutionExceptions(); }
public void addFunctionStats(FunctionServiceStats functionServiceStats) { Statistics functionStatistics = functionServiceStats.getStats(); monitor.addStatisticsToMonitor(functionStatistics); }
/** * Increments the "_functionExecutionException" and decrements "_functionExecutionsRunningId" and decrement "_functionExecutionHasResultRunningId" * * @param haveResult */ public void endFunctionExecutionWithException(boolean haveResult) { //Decrement function Executions running. //this._stats.incInt(_functionExecutionsRunningId, -1); this._stats.incInt(_functionExecutionsRunningDNId, -1); //Increment number of function excution exceptions this._stats.incInt(_functionExecutionExceptions, 1); if(haveResult){ //Decrement function Executions with haveResult = true running. this._stats.incInt(_functionExecutionsHasResultRunningId, -1); } aggregateStats.endFunctionExecutionWithException(haveResult); }
aggregateStats.endFunctionExecution(start, haveResult);
functionServiceStats.close();
public FunctionServiceStats getFunctionServiceStats() { if (functionServiceStats == null) { synchronized (this) { if(functionServiceStats == null){ functionServiceStats = new FunctionServiceStats(this, "FunctionExecution"); } } } return functionServiceStats; }
/** * Increments the "FunctionExecutionsCompleted" stat. */ public void incFunctionExecutionsCompleted() { this._stats.incInt(_functionExecutionsCompletedId, 1); aggregateStats.incFunctionExecutionsCompleted(); }