Package org.rhq.plugins.perftest.trait

Examples of org.rhq.plugins.perftest.trait.TraitFactory


         *
         * jdobies, Jun 25, 2007
         */
        MeasurementFactory measurementFactory = scenarioManager.getMeasurementFactory(resourceTypeName);
        CalltimeFactory calltimeFactory = scenarioManager.getCalltimeFactory(resourceTypeName);
        TraitFactory traitFactory = scenarioManager.getTraitFactory(resourceTypeName);

        for (MeasurementScheduleRequest metric : metrics) {
            switch (metric.getDataType()) {
                case CALLTIME:
                    CallTimeData callTimeData = calltimeFactory.nextValue(metric);
                    if (callTimeData!=null) {
                        report.addData(callTimeData);
                    }
                    break;
                case MEASUREMENT:
                    MeasurementDataNumeric measurementData = (MeasurementDataNumeric) measurementFactory.nextValue(metric);

                    if (measurementData != null) {
                        report.addData(measurementData);
                    }
                    break;
                case TRAIT:
                    MeasurementDataTrait measurementDataTrait = traitFactory.nextValue(metric);
                    if (measurementDataTrait != null) {
                        report.addData(measurementDataTrait);
                    }
                    break;

View Full Code Here


        return calltimeFactory;
    }

    public TraitFactory getTraitFactory(String resourceTypeName) {
        TraitFactory traitFactory = traitFactories.get(resourceTypeName);

        if (traitFactory == null) {
            Resource resource = findResource(resourceTypeName);
            if (resource == null) {
                traitFactory = EMPTY_TRAIT_FACTORY;
View Full Code Here

TOP

Related Classes of org.rhq.plugins.perftest.trait.TraitFactory

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.