Package org.rhq.core.domain.configuration.definition

Examples of org.rhq.core.domain.configuration.definition.ConfigurationTemplate.createConfiguration()


                                operationParameters = exampleParameters.deepCopy(false);
                                break;
                            }
                        }
                    default:
                        operationParameters = (defaultTemplate != null) ? defaultTemplate.createConfiguration()
                            : new Configuration();
                    }
                }

                ConfigurationGWTServiceAsync configurationService = GWTServiceLookup.getConfigurationService();
View Full Code Here


            || !this.newResourceConfigurationDefinition.equals(newResourceConfigurationDefinition)) {
            this.newResourceConfigurationDefinition = newResourceConfigurationDefinition;
            if (newResourceConfigurationDefinition != null) {
                ConfigurationTemplate defaultTemplate = this.newResourceConfigurationDefinition.getDefaultTemplate();
                this.newResourceStartingConfiguration = (defaultTemplate != null) ?
                        defaultTemplate.createConfiguration() : new Configuration();
            }
        }
    }

    public Configuration getNewResourceStartingConfiguration() {
View Full Code Here

        ConfigurationDefinition pluginConfigurationDefinition = jmxServerType.getPluginConfigurationDefinition();
        ConfigurationTemplate template = pluginConfigurationDefinition.getTemplate(getPluginConfigTemplateName());
        assertNotNull(template);

        Configuration pluginConfig = template.createConfiguration();
        setupTemplatedPluginConfig(pluginConfig);

        MergeResourceResponse response = getInventoryManager().manuallyAddResource(jmxServerType,
            getPlatform().getId(), pluginConfig, -1);
View Full Code Here

        Map<String, ConfigurationTemplate> templates = def.getTemplates();

        ConfigurationTemplate template = (ConfigurationTemplate) question(templates, null, "template", "Select from the available templates");

        return editConfiguration(def, template == null ? null : template.createConfiguration());
    }

    public Configuration editExistingConfiguration(ConfigurationDefinition def, Configuration config) throws IOException, QuitException {
        List<PropertyGroupDefinition> groups = new ArrayList<PropertyGroupDefinition>(def.getGroupDefinitions());
View Full Code Here

    }

    private static Configuration getDefaultPluginConfiguration(ResourceType resourceType) {
        ConfigurationTemplate pluginConfigDefaultTemplate = resourceType.getPluginConfigurationDefinition()
            .getDefaultTemplate();
        return (pluginConfigDefaultTemplate != null) ? pluginConfigDefaultTemplate.createConfiguration()
            : new Configuration();
    }

    private void handleMiscManagedProperties(Collection<PropertyDefinition> managedPropertyGroup,
        Map<String, ManagedProperty> managedProperties, Configuration pluginConfiguration) {
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.