/** * Find standard operation statistics. */ private void findStandardOperationStatistics() { for (final StandardOperationStatistic t : StandardOperationStatistic.values()) { OperationStatistic statistic = findOperationStatistic(manager, t); if (statistic == null) { if (t.required()) { throw new IllegalStateException("Required statistic " + t + " not found"); } else { LOGGER.debug("Mocking Operation Statistic: {}", t); standardOperations.put(t, NullCompoundOperation.instance(t.type())); } } else { standardOperations.put(t, new CompoundOperationImpl(statistic, t.type(), StatisticsGateway.DEFAULT_WINDOW_SIZE_SECS, SECONDS, executor, defaultHistorySize, t.isSearch() ? defaultSearchIntervalSeconds : defaultIntervalSeconds, SECONDS)); } } }
/** * Find standard operation statistics. */ private void findStandardOperationStatistics() { for (final StandardOperationStatistic t : StandardOperationStatistic.values()) { OperationStatistic statistic = findOperationStatistic(manager, t); if (statistic == null) { if (t.required()) { throw new IllegalStateException("Required statistic " + t + " not found"); } else { LOGGER.debug("Mocking Operation Statistic: {}", t); standardOperations.put(t, NullCompoundOperation.instance(t.type())); } } else { standardOperations.put(t, new CompoundOperationImpl(statistic, t.type(), StatisticsGateway.DEFAULT_WINDOW_SIZE_SECS, SECONDS, executor, defaultHistorySize, t.isSearch() ? defaultSearchIntervalSeconds : defaultIntervalSeconds, SECONDS)); } } }
/** * Find standard operation statistics. */ private void findStandardOperationStatistics() { for (final StandardOperationStatistic t : StandardOperationStatistic.values()) { OperationStatistic statistic = findOperationStatistic(manager, t); if (statistic == null) { if (t.required()) { throw new IllegalStateException("Required statistic " + t + " not found"); } else { LOGGER.debug("Mocking Operation Statistic: {}", t); standardOperations.put(t, NullCompoundOperation.instance(t.type())); } } else { standardOperations.put(t, new CompoundOperationImpl(statistic, t.type(), StatisticsGateway.DEFAULT_WINDOW_SIZE_SECS, SECONDS, executor, defaultHistorySize, t.isSearch() ? defaultSearchIntervalSeconds : defaultIntervalSeconds, SECONDS)); } } }