org.rhq.rhqtransform
Interface AugeasToConfiguration

All Known Implementing Classes:
AugeasToConfigurationSimple

public interface AugeasToConfiguration

Implementations of this interface provide mapping of Augeas data to the RHQ configuration.

Author:
Filip Drabek

Method Summary
 org.rhq.core.domain.configuration.Property createPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList, AugeasNode parentNode)
          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 parentNode)
          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 parentNode)
          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.
 

Method Detail

setTree

void setTree(AugeasTree tree)
Sets the Augeas tree that should be worked with.

Parameters:
tree -

setNameMap

void setNameMap(NameMap nameMap)
Provides the mapper with name conversion from Augeas node names to RHQ configuration property names.

Parameters:
nameMap -

loadResourceConfiguration

org.rhq.core.domain.configuration.Configuration loadResourceConfiguration(AugeasNode startNode,
                                                                          org.rhq.core.domain.configuration.definition.ConfigurationDefinition resourceConfigDef)
                                                                          throws AugeasRhqException
Loads the RHQ configuration instance from the Augeas tree.

Parameters:
startNode - the node to start the mapping from
resourceConfigDef - the configuration definition to use
Returns:
the RHQ configuration with the values loaded from the Augeas tree
Throws:
AugeasRhqException

loadProperty

org.rhq.core.domain.configuration.Property loadProperty(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef,
                                                        AugeasNode parentNode)
                                                        throws AugeasRhqException
Loads a single property from given node.

Parameters:
propDef - the definition of the property
parentNode - the parent node from which the property should be loaded.
Returns:
Throws:
AugeasRhqException

createPropertySimple

org.rhq.core.domain.configuration.Property createPropertySimple(org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDefSimple,
                                                                AugeasNode parentNode)
                                                                throws AugeasRhqException
TODO this should be removed from the interface and made protected abstract in AugeasToConfigurationSimple Creates a simple property from the property definition.

Parameters:
propDefSimple - the definition of the property
parentNode - the parent node where the property should be looked for
Returns:
Throws:
AugeasRhqException

createPropertyMap

org.rhq.core.domain.configuration.PropertyMap createPropertyMap(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
                                                                AugeasNode parentNode)
                                                                throws AugeasRhqException
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.

Parameters:
propDefMap - the definition of the property map
parentNode - the parent node
Returns:
Throws:
AugeasRhqException

createPropertyList

org.rhq.core.domain.configuration.Property createPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList,
                                                              AugeasNode parentNode)
                                                              throws AugeasRhqException
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.

Parameters:
propDefList -
parentNode -
Returns:
Throws:
AugeasRhqException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.