Package org.easybatch.tools.reporting

Examples of org.easybatch.tools.reporting.DefaultEasyBatchReportsAggregator


        report2.setStartTime(startTime2);
        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


        //wait for easy batch instances termination and get partial reports
        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

Related Classes of org.easybatch.tools.reporting.DefaultEasyBatchReportsAggregator

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.