Package org.rhq.plugins.perftest.scenario

Examples of org.rhq.plugins.perftest.scenario.Resource


    public ResourceFactory getResourceFactory(String resourceTypeName) {
        ResourceFactory resourceFactory = resourceFactories.get(resourceTypeName);

        // Lazy load the factory
        if (resourceFactory == null) {
            Resource resource = findResource(resourceTypeName);
            if (resource == null) {
                resourceFactory = EMPTY_RESOURCE_FACTORY;
            } else {
                ResourceGenerator generator = resource.getResourceGenerator().getValue();
                resourceFactory = createResourceFactory(generator);
            }

            resourceFactories.put(resourceTypeName, resourceFactory);
        }
View Full Code Here


    public MeasurementFactory getMeasurementFactory(String resourceTypeName) {
        MeasurementFactory measurementFactory = measurementFactories.get(resourceTypeName);

        // Lazy load the factory
        if (measurementFactory == null) {
            Resource resource = findResource(resourceTypeName);
            if (resource == null) {
                measurementFactory = EMPTY_MEASUREMENT_FACTORY;
            } else {
                JAXBElement<? extends MeasurementGenerator> element = resource.getMeasurementGenerator();
                if (element == null) {
                    measurementFactory = EMPTY_MEASUREMENT_FACTORY;
                } else {
                    MeasurementGenerator generator = element.getValue();
                    measurementFactory = createMeasurementFactory(generator);
View Full Code Here

    public CalltimeFactory getCalltimeFactory(String resourceTypeName) {
        CalltimeFactory calltimeFactory= calltimeFactories.get(resourceTypeName);

        if (calltimeFactory == null ) {
            Resource resource = findResource(resourceTypeName);
            if (resource == null) {
                calltimeFactory = EMPTY_CALLTIME_FACTORY;
            } else {
                JAXBElement<? extends CalltimeGenerator> element = resource.getCalltimeGenerator();
                if (element == null) {
                    calltimeFactory = EMPTY_CALLTIME_FACTORY;
                } else {
                    CalltimeGenerator generator = element.getValue();
                    calltimeFactory = createCalltimeFactory(generator);
View Full Code Here

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

        if (traitFactory == null) {
            Resource resource = findResource(resourceTypeName);
            if (resource == null) {
                traitFactory = EMPTY_TRAIT_FACTORY;
            } else {
                JAXBElement<? extends TraitGenerator> element = resource.getTraitGenerator();
                if (element == null) {
                    traitFactory = EMPTY_TRAIT_FACTORY;
                } else {
                    TraitGenerator generator = element.getValue();
                    traitFactory = createTraitFactory(generator);
View Full Code Here

    public ConfigurationFactory getPluginConfigurationFactory(String resourceTypeName) {
        ConfigurationFactory configurationFactory = pluginConfigurationFactories.get(resourceTypeName);

        // Lazy load the factory
        if (configurationFactory == null) {
            Resource resource = findResource(resourceTypeName);
            if (resource != null) {
                JAXBElement<? extends ConfigurationGenerator> element = resource.getPluginConfigurationGenerator();
                if (element != null) {
                    ConfigurationGenerator generator = element.getValue();
                    configurationFactory = createConfigurationFactory(generator);
                    pluginConfigurationFactories.put(resourceTypeName, configurationFactory);
                }
View Full Code Here

    public ContentFactory getContentFactory(String resourceTypeName, String packageTypeName) {
        ContentFactory contentFactory = contentFactories.get(packageTypeName);

        // Lazy load the factory
        if (contentFactory == null) {
            Resource resource = findResource(resourceTypeName);
            if (resource != null) {
                List<JAXBElement<? extends ContentGenerator>> elements = resource.getContentGenerator();

                if (elements != null) {
                    for (JAXBElement<? extends ContentGenerator> element : elements) {
                        ContentGenerator generator = element.getValue();
View Full Code Here

TOP

Related Classes of org.rhq.plugins.perftest.scenario.Resource

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.