Package org.apache.synapse.aspects.statistics

Examples of org.apache.synapse.aspects.statistics.StatisticsUpdateStrategy


                        log.debug("There are not statistics for user ID : " + userID);
                    }
                    continue;
                }

                final StatisticsUpdateStrategy strategy = new StatisticsUpdateStrategy(record);
                final Iterator<String> logIds = record.getAllLogIds(type);
                while (logIds.hasNext()) {
                    String id = logIds.next();

                    InOutStatisticsView view;
View Full Code Here


                    view = statisticsMap.get(userID);
                } else {
                    view = new InOutStatisticsView(id, userID, type);
                    statisticsMap.put(userID, view);
                }
                updateStatistics(id, type, view, new StatisticsUpdateStrategy(record));
            }
        }

        return statisticsMap;
    }
View Full Code Here

                new HashMap<String, InOutStatisticsView>();

        for (StatisticsRecord record : statisticsRecords) {
            if (record != null) {

                final StatisticsUpdateStrategy strategy = new StatisticsUpdateStrategy(record);
                final Iterator<String> logIds = record.getAllLogIds(type);
                while (logIds.hasNext()) {
                    String id = logIds.next();

                    InOutStatisticsView view;
View Full Code Here

        }

        InOutStatisticsView view = new InOutStatisticsView(id, Statistics.ALL, type);
        for (StatisticsRecord record : statisticsRecords) {
            if (record != null) {
                updateStatistics(id, type, view, new StatisticsUpdateStrategy(record));
            }
        }
        statisticsMap.put(Statistics.ALL, view);
        return statisticsMap;
    }
View Full Code Here

TOP

Related Classes of org.apache.synapse.aspects.statistics.StatisticsUpdateStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.