Examples of InOutStatisticsView


Examples of org.apache.synapse.aspects.statistics.view.InOutStatisticsView

        assertEquals((double) value4, entityOutRecord.getAvgTime());
    }

    private void runPhaseThree() {
        System.out.println("Starting phase 3");
        InOutStatisticsView view = getDataView(resource2, value5, value6);
        ErrorLog log = new ErrorLog("1001");
        view.getInStatistics().addErrorLog(log);
        store.updateStatistics(view);

        StatisticsRecord categoryInRecord  = store.getRecordByCategory(type, true);
        assertEquals(3, categoryInRecord.getTotalCount());
        assertEquals(0, categoryInRecord.getFaultCount());
View Full Code Here

Examples of org.apache.synapse.aspects.statistics.view.InOutStatisticsView

        avg = ((double) value4 + (double) value6)/2;
        assertEquals(avg, entityOutRecord.getAvgTime());
    }

    private InOutStatisticsView getDataView(String resourceId, long in, long out) {
        InOutStatisticsView view = new InOutStatisticsView(resourceId, "test.wso2.org", type);
        view.getInStatistics().update(in, false);
        view.getOutStatistics().update(out, false);
        return view;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.