Package org.apache.synapse.aspects.statistics

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


    private void processCallbacks() {

        //clear the expired statistics
        if (statisticsCleaner == null) {
            StatisticsCollector collector = SynapseConfigUtils.getStatisticsCollector(contextInfo);
            if (collector != null) {
                statisticsCleaner = new StatisticsCleaner(collector);
            }
        }
        if (statisticsCleaner != null) {
View Full Code Here


    private void collectDataAndReport() {
        if (log.isDebugEnabled()) {
            log.trace("Starting new mediation statistics collection cycle");
        }

        StatisticsCollector statisticsCollector =
                synapseEnvironmentService.getSynapseEnvironment().getStatisticsCollector();

        if (statisticsCollector == null) {
            if (log.isDebugEnabled()) {
                log.debug("Statistics collector is not available in the Synapse environment");
            }
            delay();
            return;
        }

        List<StatisticsRecord> records =
                statisticsCollector.getAndClearStatisticsRecords();
        if (records == null || records.size() == 0) {
            // If no records are collected take a nap and try again later
            delay();
            return;
        }
View Full Code Here

TOP

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

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.