Package org.rhq.core.domain.configuration

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


    private boolean getIsPinnedProperty() {
        return Boolean.valueOf(configuration.getSimpleValue(DriftConfigurationDefinition.PROP_PINNED, "false"));
    }

    private void setPinnedProperty(boolean pinned) {
        configuration.put(new PropertySimple(DriftConfigurationDefinition.PROP_PINNED, pinned));
    }
View Full Code Here


            DriftConfigurationDefinition.PROP_DRIFT_HANDLING_MODE,
            DriftConfigurationDefinition.DEFAULT_DRIFT_HANDLING_MODE.name()));
    }

    private void setDriftHandlingModeProperty(DriftHandlingMode mode) {
        configuration.put(new PropertySimple(DriftConfigurationDefinition.PROP_DRIFT_HANDLING_MODE, mode.name()));
    }
View Full Code Here

        return configuration.getSimpleValue(DriftConfigurationDefinition.PROP_ENABLED,
            String.valueOf(DriftConfigurationDefinition.DEFAULT_ENABLED)).equals("true");
    }

    private void setEnabledProperty(boolean enabled) {
        configuration.put(new PropertySimple(DriftConfigurationDefinition.PROP_ENABLED, String.valueOf(enabled)));
    }
View Full Code Here

        return configuration.getSimpleValue(DriftConfigurationDefinition.PROP_ATTACHED,
            String.valueOf(DriftConfigurationDefinition.DEFAULT_ATTACHED)).equals("true");
    }

    private void setAttachedProperty(boolean attached) {
        configuration.put(new PropertySimple(DriftConfigurationDefinition.PROP_ATTACHED, String.valueOf(attached)));
    }
View Full Code Here

            filtersList = new PropertyList(DriftConfigurationDefinition.PROP_INCLUDES);
            configuration.put(filtersList);
        }

        PropertyMap filterMap = new PropertyMap(DriftConfigurationDefinition.PROP_INCLUDES_INCLUDE);
        filterMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_PATH, StringUtils.useForwardSlash(filter
            .getPath())));
        filterMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_PATTERN, filter.getPattern()));
        filtersList.add(filterMap);
    }
View Full Code Here

            filtersList = new PropertyList(DriftConfigurationDefinition.PROP_EXCLUDES);
            configuration.put(filtersList);
        }

        PropertyMap filterMap = new PropertyMap(DriftConfigurationDefinition.PROP_EXCLUDES_EXCLUDE);
        filterMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_PATH, StringUtils.useForwardSlash(filter
            .getPath())));
        filterMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_PATTERN, filter.getPattern()));
        filtersList.add(filterMap);
    }
View Full Code Here

    }

    public Configuration toConfiguration() {
        Configuration ret = new Configuration();
        for(Map.Entry<SystemSetting, String> e : entrySet()) {
            ret.put(new PropertySimple(e.getKey().getInternalName(), e.getValue()));
        }
       
        return ret;
    }
View Full Code Here

                if (manifest != null) {
                    Attributes attributes = manifest.getMainAttributes();

                    manifestVersion = attributes.getValue(Attributes.Name.IMPLEMENTATION_VERSION);

                    config.put(new PropertySimple("version", manifestVersion));
                    config.put(new PropertySimple("title", attributes.getValue(Attributes.Name.IMPLEMENTATION_TITLE)));
                    config.put(new PropertySimple("url", attributes.getValue(Attributes.Name.IMPLEMENTATION_URL)));
                    config
                        .put(new PropertySimple("vendor", attributes.getValue(Attributes.Name.IMPLEMENTATION_VENDOR)));

                    config.put(new PropertySimple("classpath", attributes.getValue(Attributes.Name.CLASS_PATH)));
                    config.put(new PropertySimple("sealed", attributes.getValue(Attributes.Name.SEALED)));
                }

                String sha256 = null;
                try {
                    sha256 = new MessageDigestGenerator(MessageDigestGenerator.SHA_256).calcDigestString(file);
View Full Code Here

    }

    @NotNull
    public List<Pattern> getExcludes() {
        List<Pattern> excludes = new ArrayList<Pattern>();
        PropertySimple excludesProp = this.pluginConfig.getSimple(RESPONSE_TIME_URL_EXCLUDES_CONFIG_PROP);
        if ((excludesProp != null) && (excludesProp.getStringValue() != null)) {
            StringTokenizer tokenizer = new StringTokenizer(excludesProp.getStringValue(), " ");
            while (tokenizer.hasMoreTokens()) {
                String regEx = tokenizer.nextToken();
                try {
                    Pattern exclude = Pattern.compile(regEx);
                    excludes.add(exclude);
View Full Code Here

    }

    @NotNull
    public List<RegexSubstitution> getTransforms() {
        List<RegexSubstitution> transforms = new ArrayList<RegexSubstitution>();
        PropertySimple transformsProp = this.pluginConfig.getSimple(RESPONSE_TIME_URL_TRANSFORMS_CONFIG_PROP);
        if ((transformsProp != null) && (transformsProp.getStringValue() != null)) {
            StringTokenizer tokenizer = new StringTokenizer(transformsProp.getStringValue(), " ");
            while (tokenizer.hasMoreTokens()) {
                String value = tokenizer.nextToken();
                String delimiter = value.substring(0, 1); // first character is the delimiter (sed-style)
                String lastChar = value.substring(value.length() - 1);
                if (value.length() < 3 || !lastChar.equals(delimiter)) {
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.configuration.PropertySimple

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.