public class AugeasToConfigurationSimple extends Object implements AugeasToConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected NameMap |
nameMap |
protected AugeasTree |
tree |
| Constructor and Description |
|---|
AugeasToConfigurationSimple() |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.configuration.Property |
createPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList,
AugeasNode node)
TODO this should be removed from the interface and made protected abstract in AugeasToConfigurationSimple
Creates a property list from the data in the parent node.
|
org.rhq.core.domain.configuration.PropertyMap |
createPropertyMap(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
AugeasNode node)
TODO this should be removed from the interface and made protected abstract in AugeasToConfigurationSimple
Creates a map property from the data in the parent node.
|
org.rhq.core.domain.configuration.Property |
createPropertySimple(org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDefSimple,
AugeasNode node)
TODO this should be removed from the interface and made protected abstract in AugeasToConfigurationSimple
Creates a simple property from the property definition.
|
org.rhq.core.domain.configuration.Property |
loadProperty(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef,
AugeasNode parentNode)
Loads a single property from given node.
|
org.rhq.core.domain.configuration.Configuration |
loadResourceConfiguration(AugeasNode startNode,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition resourceConfigDef)
Loads the RHQ configuration instance from the Augeas tree.
|
void |
setNameMap(NameMap nameMap)
Provides the mapper with name conversion from Augeas node names to RHQ
configuration property names.
|
void |
setTree(AugeasTree tree)
Sets the Augeas tree that should be worked with.
|
protected AugeasTree tree
protected NameMap nameMap
public void setTree(AugeasTree tree)
AugeasToConfigurationsetTree in interface AugeasToConfigurationpublic void setNameMap(NameMap nameMap)
AugeasToConfigurationsetNameMap in interface AugeasToConfigurationpublic org.rhq.core.domain.configuration.Configuration loadResourceConfiguration(AugeasNode startNode, org.rhq.core.domain.configuration.definition.ConfigurationDefinition resourceConfigDef) throws AugeasRhqException
AugeasToConfigurationloadResourceConfiguration in interface AugeasToConfigurationstartNode - the node to start the mapping fromresourceConfigDef - the configuration definition to useAugeasRhqExceptionpublic org.rhq.core.domain.configuration.Property loadProperty(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef,
AugeasNode parentNode)
throws AugeasRhqException
AugeasToConfigurationloadProperty in interface AugeasToConfigurationpropDef - the definition of the propertyparentNode - the parent node from which the property should be loaded.AugeasRhqExceptionpublic org.rhq.core.domain.configuration.Property createPropertySimple(org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDefSimple,
AugeasNode node)
throws AugeasRhqException
AugeasToConfigurationcreatePropertySimple in interface AugeasToConfigurationpropDefSimple - the definition of the propertynode - the parent node where the property should be looked forAugeasRhqExceptionpublic org.rhq.core.domain.configuration.PropertyMap createPropertyMap(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
AugeasNode node)
throws AugeasRhqException
AugeasToConfigurationcreatePropertyMap in interface AugeasToConfigurationpropDefMap - the definition of the property mapnode - the parent nodeAugeasRhqExceptionpublic org.rhq.core.domain.configuration.Property createPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList,
AugeasNode node)
throws AugeasRhqException
AugeasToConfigurationcreatePropertyList in interface AugeasToConfigurationAugeasRhqExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.