Examples of aggregateReports()


Examples of org.easybatch.tools.reporting.DefaultEasyBatchReportsAggregator.aggregateReports()

        report2.setEndTime(endTime2);
        report2.setEasyBatchResult("result2");
        report2.setDataSource("datasource2");

        EasyBatchReportsAggregator reportsAggregator = new DefaultEasyBatchReportsAggregator();
        EasyBatchReport finalReport = reportsAggregator.aggregateReports(report1, report2);

        assertEquals(new Integer(10), finalReport.getTotalRecords()); //sum of total records
        assertEquals(2, finalReport.getFilteredRecordsCount());// sum of filtered records
        assertEquals(2, finalReport.getIgnoredRecordsCount());// sum of ignored records
        assertEquals(2, finalReport.getRejectedRecordsCount());// sum of rejected records
View Full Code Here

Examples of org.easybatch.tools.reporting.DefaultEasyBatchReportsAggregator.aggregateReports()

        EasyBatchReport easyBatchReport1 = batchReportFuture1.get();
        EasyBatchReport easyBatchReport2 = batchReportFuture2.get();

        //aggregate partial reports into a global one
        EasyBatchReportsAggregator reportsAggregator = new DefaultEasyBatchReportsAggregator();
        EasyBatchReport finalReport = reportsAggregator.aggregateReports(easyBatchReport1, easyBatchReport2);
        System.out.println(finalReport);

        //shutdown executor service
        executorService.shutdown();
View Full Code Here

Examples of org.easybatch.tools.reporting.EasyBatchReportsAggregator.aggregateReports()

        report2.setEndTime(endTime2);
        report2.setEasyBatchResult("result2");
        report2.setDataSource("datasource2");

        EasyBatchReportsAggregator reportsAggregator = new DefaultEasyBatchReportsAggregator();
        EasyBatchReport finalReport = reportsAggregator.aggregateReports(report1, report2);

        assertEquals(new Integer(10), finalReport.getTotalRecords()); //sum of total records
        assertEquals(2, finalReport.getFilteredRecordsCount());// sum of filtered records
        assertEquals(2, finalReport.getIgnoredRecordsCount());// sum of ignored records
        assertEquals(2, finalReport.getRejectedRecordsCount());// sum of rejected records
View Full Code Here

Examples of org.easybatch.tools.reporting.EasyBatchReportsAggregator.aggregateReports()

        EasyBatchReport easyBatchReport1 = batchReportFuture1.get();
        EasyBatchReport easyBatchReport2 = batchReportFuture2.get();

        //aggregate partial reports into a global one
        EasyBatchReportsAggregator reportsAggregator = new DefaultEasyBatchReportsAggregator();
        EasyBatchReport finalReport = reportsAggregator.aggregateReports(easyBatchReport1, easyBatchReport2);
        System.out.println(finalReport);

        //shutdown executor service
        executorService.shutdown();
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.