Examples of PropertySimple


Examples of org.rhq.core.domain.configuration.PropertySimple

          // Perform the deployment
            FileContentDelegate deployer = new FileContentDelegate(new File(getConfigurationPath(), deployDirectory),
                    "", details.getPackageTypeName());

            PropertySimple zipProperty = deployTimeConfiguration.getSimple("deployZipped");

          if (zipProperty != null && zipProperty.getBooleanValue() != null) {
            boolean zip = zipProperty.getBooleanValue();

              File tempDir = resourceContext.getTemporaryDirectory();
              File tempFile = new File(tempDir.getAbsolutePath(), "esb.bin");
              OutputStream osForTempDir = new BufferedOutputStream(new FileOutputStream(tempFile));
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertySimple

    }

    private void initEnabled(DriftDefinitionTemplate template) {
        template.getConfiguration()
            .put(
                new PropertySimple(DriftConfigurationDefinition.PROP_ENABLED,
                    DriftConfigurationDefinition.DEFAULT_ENABLED));
    }
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertySimple

    }

    private void initName(DriftDescriptor descriptor, DriftDefinitionTemplate template) {
        template.setName(descriptor.getName());
        template.getConfiguration().put(
            new PropertySimple(DriftConfigurationDefinition.PROP_NAME, descriptor.getName()));
    }
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertySimple

    }

    private void initDescription(DriftDescriptor descriptor, DriftDefinitionTemplate template) {
        template.setDescription(descriptor.getDescription());
        template.getConfiguration().put(
            new PropertySimple(DriftConfigurationDefinition.PROP_DESCRIPTION, descriptor.getDescription()));
    }
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertySimple

        Basedir basedir = descriptor.getBasedir();
        String valueContext = basedir.getValueContext();
        String valueName = basedir.getValueName();

        PropertyMap basedirMap = new PropertyMap(DriftConfigurationDefinition.PROP_BASEDIR);
        basedirMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_BASEDIR_VALUECONTEXT, valueContext));
        basedirMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_BASEDIR_VALUENAME, valueName));

        template.getConfiguration().put(basedirMap);
    }
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertySimple

    }

    private void initInterval(DriftDescriptor descriptor, DriftDefinitionTemplate template) {
        Configuration config = template.getConfiguration();
        if (descriptor.getInterval() == null) {
            config.put(new PropertySimple(DriftConfigurationDefinition.PROP_INTERVAL, String
                .valueOf(DriftConfigurationDefinition.DEFAULT_INTERVAL)));
        } else {
            config.put(new PropertySimple(DriftConfigurationDefinition.PROP_INTERVAL, descriptor.getInterval()));
        }
    }
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertySimple

            Configuration config = template.getConfiguration();
            PropertyList includes = new PropertyList(DriftConfigurationDefinition.PROP_INCLUDES);

            for (DriftFilterDescriptor include : descriptor.getIncludes().getInclude()) {
                PropertyMap includeMap = new PropertyMap(DriftConfigurationDefinition.PROP_INCLUDES_INCLUDE);
                includeMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_PATH, include.getPath()));
                includeMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_PATTERN, include.getPattern()));

                includes.add(includeMap);
            }
            config.put(includes);
        }
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertySimple

            Configuration config = template.getConfiguration();
            PropertyList excludes = new PropertyList(DriftConfigurationDefinition.PROP_EXCLUDES);

            for (DriftFilterDescriptor exclude : descriptor.getExcludes().getExclude()) {
                PropertyMap excludeMap = new PropertyMap(DriftConfigurationDefinition.PROP_EXCLUDES_EXCLUDE);
                excludeMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_PATH, exclude.getPath()));
                excludeMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_PATTERN, exclude.getPattern()));

                excludes.add(excludeMap);
            }
            config.put(excludes);
        }
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertySimple

        property.setDefaultValue(simpleProperty.getDefaultValue());
        property.setUnits(MetricsMetadataParser.getMeasurementUnits(simpleProperty.getUnits(), null));

        String initialValue = simpleProperty.getInitialValue();
        if ((defaultConfigurationParentMap != null) && (initialValue != null)) {
            defaultConfigurationParentMap.put(new PropertySimple(simpleProperty.getName(), initialValue));
        }

        // Load the enumeration of options
        if (simpleProperty.getPropertyOptions() != null) {
            parsePropertyOptions(property, simpleProperty.getPropertyOptions());
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertySimple

    public int getColumns() {
        return Integer.valueOf(configuration.getSimpleValue(CFG_COLUMNS, "1"));
    }

    public void setColumns(int columns) {
        configuration.put(new PropertySimple(CFG_COLUMNS, columns));
    }
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.