Examples of PropertySimpleType


Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

  public static MetaType convertPropertyDefinitionToMetaType(
      PropertyDefinition propDef) {
    MetaType memberMetaType;
    if (propDef instanceof PropertyDefinitionSimple) {
      PropertySimpleType propSimpleType = ((PropertyDefinitionSimple) propDef)
          .getType();
      memberMetaType = convertPropertySimpleTypeToSimpleMetaType(propSimpleType);
    } else if (propDef instanceof PropertyDefinitionList) {
      // TODO (very low priority, since lists of lists are not going to be
      // at all common)
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

        return propDefMap;
    }

    private static PropertySimpleType translatePropertyType(PropertyType fromType)
        throws InvalidPluginDescriptorException {
        PropertySimpleType toType;

        switch (fromType) {
        case BOOLEAN: {
            toType = PropertySimpleType.BOOLEAN;
            break;
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

    private static PropertyDefinitionSimple createName(ConfigurationDefinition configDef, boolean readOnly) {
        String name = PROP_NAME;
        String description = "The drift detection definition name";
        boolean required = true;
        PropertySimpleType type = PropertySimpleType.STRING;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Drift Definition Name");
        pd.setReadOnly(readOnly);
        pd.setSummary(true);
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

    private static PropertyDefinitionSimple createDescription(ConfigurationDefinition configDef) {
        String name = PROP_DESCRIPTION;
        String description = "A description of the drift detection definition or template";
        boolean required = false;
        PropertySimpleType type = PropertySimpleType.STRING;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Drift Definition Description");
        pd.setSummary(true);
        pd.setOrder(1);
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

    private static PropertyDefinitionSimple createEnabled(ConfigurationDefinition configDef) {
        String name = PROP_ENABLED;
        String description = "Enables or disables the drift definition";
        boolean required = true;
        PropertySimpleType type = PropertySimpleType.BOOLEAN;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Enabled");
        pd.setReadOnly(false);
        pd.setSummary(true);
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

        String description = "A flag that indicates whether or not the definition is attached to the template from "
            + "which it is created. When a template is updated, the changes will be propagated to any attached "
            + "definitions. Furthermore, if you pin an existing template to a snapshot, then attached definitions will "
            + "become pinned as well. Finally, if you delete a template, attached definitions will also be deleted.";
        boolean required = true;
        PropertySimpleType type = PropertySimpleType.BOOLEAN;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Attached to Template");
        pd.setDefaultValue("true");
        pd.setOrder(3);
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

            + "that the reported drift is happening at a time when drift is expected due to " //
            + "planned changes in the monitored environment, such as an application deployment, a " //
            + "configuration change, or something similar.  With this setting drift is only reported " //
            + " for inspection, in drift snapshot views.";
        boolean required = true;
        PropertySimpleType type = PropertySimpleType.STRING;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Drift Handling Mode");
        pd.setReadOnly(false);
        pd.setSummary(true);
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

        String description = "If set, pins the snapshot that the agent uses for comparing files during drift "
            + "detection. Normally, the agent compares those files being monitored for drift against the latest "
            + "snapshot. If you pin a snapshot, the agent will use that pinned version to compare against files "
            + "being monitored for drift";
        boolean required = true;
        PropertySimpleType type = PropertySimpleType.BOOLEAN;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Pinned");
        pd.setDefaultValue("false");
        pd.setOrder(5);
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

    private static PropertyDefinitionSimple createInterval(ConfigurationDefinition configDef) {
        String name = PROP_INTERVAL;
        String description = "The frequency in seconds in which drift detection should run. Defaults to 1800 seconds (i.e. 30 minutes). This value must be" +
                "higher than (or equal to) agent's interval.";
        boolean required = false;
        PropertySimpleType type = PropertySimpleType.LONG;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Interval");
        pd.setReadOnly(false);
        pd.setSummary(true);
View Full Code Here

Examples of org.rhq.core.domain.configuration.definition.PropertySimpleType

    private static PropertyDefinitionSimple createBasedirValueContext(boolean readOnly) {
        String name = PROP_BASEDIR_VALUECONTEXT;
        String description = "Identifies where the named value can be found.";
        boolean required = true;
        PropertySimpleType type = PropertySimpleType.STRING;

        PropertyDefinitionSimple pd = new PropertyDefinitionSimple(name, description, required, type);
        pd.setDisplayName("Value Context");
        pd.setReadOnly(readOnly);
        pd.setSummary(true);
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.