@Override public void reset() { com.opengamma.engine.view.calc.stats.GraphExecutionStatistics graphExecutionStatistics = getGraphExecutionStatistics(); if (graphExecutionStatistics != null) { graphExecutionStatistics.reset(); } }
@Override public String getLastExecutedTime() { com.opengamma.engine.view.calc.stats.GraphExecutionStatistics graphExecutionStatistics = getGraphExecutionStatistics(); return graphExecutionStatistics != null ? graphExecutionStatistics.getLastExecutedTime().toString() : null; }
@Override public Long getProcessedJobDataCost() { com.opengamma.engine.view.calc.stats.GraphExecutionStatistics graphExecutionStatistics = getGraphExecutionStatistics(); return graphExecutionStatistics != null ? graphExecutionStatistics.getProcessedJobDataCost() : null; }
private com.opengamma.engine.view.calc.stats.GraphExecutionStatistics getGraphExecutionStatistics() { Statistics statisticsGatherer = _statisticsProvider.getStatisticsGatherer(_viewProcessId); List<com.opengamma.engine.view.calc.stats.GraphExecutionStatistics> executionStatistics = statisticsGatherer.getExecutionStatistics(); for (com.opengamma.engine.view.calc.stats.GraphExecutionStatistics graphExecutionStatistics : executionStatistics) { if (graphExecutionStatistics.getCalcConfigName().equals(_calcConfigName) && graphExecutionStatistics.getViewProcessId().equals(_viewProcessId)) { return graphExecutionStatistics; } } return null; }
@Override public Long getActualTime() { com.opengamma.engine.view.calc.stats.GraphExecutionStatistics graphExecutionStatistics = getGraphExecutionStatistics(); return graphExecutionStatistics != null ? graphExecutionStatistics.getActualTime() : 0; }
@Override public Long getExecutedNodes() { com.opengamma.engine.view.calc.stats.GraphExecutionStatistics graphExecutionStatistics = getGraphExecutionStatistics(); return graphExecutionStatistics != null ? graphExecutionStatistics.getExecutedNodes() : null; }