Package org.rhq.core.domain.measurement

Examples of org.rhq.core.domain.measurement.MeasurementReport.addData()


        MeasurementReport report = new MeasurementReport();
        report.addData(new MeasurementDataNumeric(buckets.get(0) + 10, request, 1.1));
        report.addData(new MeasurementDataNumeric(buckets.get(0) + 20, request, 2.2));
        report.addData(new MeasurementDataNumeric(buckets.get(0) + 30, request, 3.3));
        report.addData(new MeasurementDataNumeric(buckets.get(59) + 10, request, 4.4));
        report.addData(new MeasurementDataNumeric(buckets.get(59) + 20, request, 5.5));
        report.addData(new MeasurementDataNumeric(buckets.get(59) + 30, request, 6.6));

        dataManager.mergeMeasurementReport(report);
        waitForRawInserts();
View Full Code Here


        report.addData(new MeasurementDataNumeric(buckets.get(0) + 10, request, 1.1));
        report.addData(new MeasurementDataNumeric(buckets.get(0) + 20, request, 2.2));
        report.addData(new MeasurementDataNumeric(buckets.get(0) + 30, request, 3.3));
        report.addData(new MeasurementDataNumeric(buckets.get(59) + 10, request, 4.4));
        report.addData(new MeasurementDataNumeric(buckets.get(59) + 20, request, 5.5));
        report.addData(new MeasurementDataNumeric(buckets.get(59) + 30, request, 6.6));

        dataManager.mergeMeasurementReport(report);
        waitForRawInserts();

        MeasurementAggregate actual = dataManager.getMeasurementAggregate(getOverlord(), dynamicSchedule.getId(),
View Full Code Here

    private void insertDummyReport() {
        // we insert the dummy report due to https://bugzilla.redhat.com/show_bug.cgi?id=822240
        DateTime now = new DateTime();
        MeasurementReport dummyReport = new MeasurementReport();
        dummyReport.addData(new MeasurementDataNumeric(now.getMillis(), -1, 0.0));

        dataManager.mergeMeasurementReport(dummyReport);
    }

    private void purgeMetricsTables() {
View Full Code Here


            for (int j = 0 ; j < NUM_SOURCES ; j++) {
                data.addCallData("/foo/" + j,new Date(),NUM_SOURCES-j);
            }
            report.addData(data);

            startTiming();
            measurementDataManager.mergeMeasurementReport(report);
            endTiming();
        }
View Full Code Here

            data1.addCallData("/foo", new Date(), 100);
            data2.addCallData("/bar", new Date(), 200);

            MeasurementReport report = new MeasurementReport();
            report.addData(data1);
            report.addData(data2);

            commit();

            measurementDataManager.mergeMeasurementReport(report);
View Full Code Here

            data1.addCallData("/foo", new Date(), 100);
            data2.addCallData("/bar", new Date(), 200);

            MeasurementReport report = new MeasurementReport();
            report.addData(data1);
            report.addData(data2);

            commit();

            measurementDataManager.mergeMeasurementReport(report);
View Full Code Here

            data1.addCallData("/foo", new Date(), 100);
            data2.addCallData("/bar", new Date(), 200);

            MeasurementReport report = new MeasurementReport();
            report.addData(data1);
            report.addData(data2);

            commit();

            measurementDataManager.mergeMeasurementReport(report);
View Full Code Here

            data1.addCallData("/foo", new Date(), 100);
            data2.addCallData("/bar", new Date(), 200);

            MeasurementReport report = new MeasurementReport();
            report.addData(data1);
            report.addData(data2);

            commit();

            measurementDataManager.mergeMeasurementReport(report);
View Full Code Here

            data2.addCallData("/2b", dNow, 5);

            commit();

            MeasurementReport report = new MeasurementReport();
            report.addData(data1);
            measurementDataManager.mergeMeasurementReport(report);

            report = new MeasurementReport();
            report.addData(data2);
            measurementDataManager.mergeMeasurementReport(report);
View Full Code Here

            MeasurementReport report = new MeasurementReport();
            report.addData(data1);
            measurementDataManager.mergeMeasurementReport(report);

            report = new MeasurementReport();
            report.addData(data2);
            measurementDataManager.mergeMeasurementReport(report);

            // Do not remove this sleep -- the previous is is asynchronous
            // and the sleep "guarantees" that data is actually hitting the db
            Thread.sleep(10000);
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.