Package org.apache.qpid.disttest.charting.writer

Examples of org.apache.qpid.disttest.charting.writer.ChartWriter


    }

    private void produceAllCharts()
    {

        final ChartWriter writer = new ChartWriter();
        writer.setOutputDirectory(new File(_cliOptions.get(OUTPUT_DIR_PROP)));

        SeriesBuilder seriesBuilder = new JdbcSeriesBuilder(
                _cliOptions.get(JDBC_DRIVER_NAME_PROP),
                _cliOptions.get(JDBC_URL_PROP));

        for (ChartingDefinition chartingDefinition : loadChartDefinitions())
        {
            try
            {
                ChartBuilder chartBuilder = ChartBuilderFactory.createChartBuilder(
                        chartingDefinition.getChartType(),
                        seriesBuilder);

                JFreeChart chart = chartBuilder.buildChart(chartingDefinition);
                writer.writeChartToFileSystem(chart, chartingDefinition);
            }
            catch (Exception e)
            {
                LOGGER.error("Couldn't produce chart " + chartingDefinition, e);
            }
        }

        final String summaryChartTitle = _cliOptions.get(SUMMARY_TITLE_PROP);
        writer.writeHtmlSummaryToFileSystem(summaryChartTitle);
    }
View Full Code Here


        List<ChartingDefinition> definitions  = loadChartDefinitions(chartingDefsDir);

        LOGGER.info("There are {} chart(s) to produce", definitions.size());

        final ChartWriter writer = new ChartWriter();
        writer.setOutputDirectory(chartDirectory);

        final SeriesBuilder seriesBuilder = new JdbcCsvSeriesBuilder();
        for (ChartingDefinition chartingDefinition : definitions)
        {
            ChartBuilder chartBuilder = ChartBuilderFactory.createChartBuilder(chartingDefinition.getChartType(), seriesBuilder);
            JFreeChart chart = chartBuilder.buildChart(chartingDefinition);
            writer.writeChartToFileSystem(chart, chartingDefinition.getChartStemName());
        }

        writer.writeHtmlSummaryToFileSystem();
    }
View Full Code Here

    }

    private void produceAllCharts()
    {

        final ChartWriter writer = new ChartWriter();
        writer.setOutputDirectory(new File(_cliOptions.get(OUTPUT_DIR_PROP)));

        SeriesBuilder seriesBuilder = new JdbcSeriesBuilder(
                _cliOptions.get(JDBC_DRIVER_NAME_PROP),
                _cliOptions.get(JDBC_URL_PROP));

        for (ChartingDefinition chartingDefinition : loadChartDefinitions())
        {
            ChartBuilder chartBuilder = ChartBuilderFactory.createChartBuilder(
                    chartingDefinition.getChartType(),
                    seriesBuilder);

            JFreeChart chart = chartBuilder.buildChart(chartingDefinition);
            writer.writeChartToFileSystem(chart, chartingDefinition);
        }

        final String summaryChartTitle = _cliOptions.get(SUMMARY_TITLE_PROP);
        writer.writeHtmlSummaryToFileSystem(summaryChartTitle);
    }
View Full Code Here

        List<ChartingDefinition> definitions  = loadChartDefinitions(chartingDefsDir);

        LOGGER.info("There are {} chart(s) to produce", definitions.size());

        final ChartWriter writer = new ChartWriter();
        writer.setOutputDirectory(chartDirectory);

        final SeriesBuilder seriesBuilder = new JdbcCsvSeriesBuilder();
        for (ChartingDefinition chartingDefinition : definitions)
        {
            ChartBuilder chartBuilder = ChartBuilderFactory.createChartBuilder(chartingDefinition.getChartType(), seriesBuilder);
            JFreeChart chart = chartBuilder.buildChart(chartingDefinition);
            writer.writeChartToFileSystem(chart, chartingDefinition);
        }

        writer.writeHtmlSummaryToFileSystem();
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.disttest.charting.writer.ChartWriter

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.