org.rhq.rhqtransform
Interface ConfigurationToAugeas

All Known Implementing Classes:
ConfigurationToAugeasSimple

public interface ConfigurationToAugeas

Mapping from RHQ configuration to Augeas tree.

Author:
Filip Drabek

Method Summary
 void setTree(AugeasTree tree)
          Sets the tree the mapping should work with.
 void updateList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDef, org.rhq.core.domain.configuration.Property prop, AugeasNode listNode, int seq)
          TODO this should be removed from the interface and made protected abstract in ConfigurationToAugeasSimple
 void updateMap(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap, org.rhq.core.domain.configuration.Property prop, AugeasNode mapNode, int seq)
          TODO this should be removed from the interface and made protected abstract in ConfigurationToAugeasSimple
 void updateProperty(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef, org.rhq.core.domain.configuration.Property parentProp, AugeasNode parentNode, int seq)
          Performs updates in the tree based on the values in the single property (and its descendants).
 void updateResourceConfiguration(AugeasNode node, org.rhq.core.domain.configuration.definition.ConfigurationDefinition resourceConfigDef, org.rhq.core.domain.configuration.Configuration resourceConfig)
          Updates the augeas tree with the data from the RHQ configuration
 void updateSimple(AugeasNode parentNode, org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDef, org.rhq.core.domain.configuration.Property prop, int seq)
          TODO this should be removed from the interface and made protected abstract in ConfigurationToAugeasSimple
 

Method Detail

setTree

void setTree(AugeasTree tree)
Sets the tree the mapping should work with.

Parameters:
tree -

updateResourceConfiguration

void updateResourceConfiguration(AugeasNode node,
                                 org.rhq.core.domain.configuration.definition.ConfigurationDefinition resourceConfigDef,
                                 org.rhq.core.domain.configuration.Configuration resourceConfig)
                                 throws AugeasRhqException
Updates the augeas tree with the data from the RHQ configuration

Parameters:
node - the node to start updating the data from
resourceConfigDef - configuration definition of the configuration object
resourceConfig - the configuration object to read the data from
Throws:
AugeasRhqException

updateMap

void updateMap(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
               org.rhq.core.domain.configuration.Property prop,
               AugeasNode mapNode,
               int seq)
               throws AugeasRhqException
TODO this should be removed from the interface and made protected abstract in ConfigurationToAugeasSimple

Parameters:
propDefMap -
prop -
mapNode -
seq -
Throws:
AugeasRhqException

updateList

void updateList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDef,
                org.rhq.core.domain.configuration.Property prop,
                AugeasNode listNode,
                int seq)
                throws AugeasRhqException
TODO this should be removed from the interface and made protected abstract in ConfigurationToAugeasSimple

Parameters:
propDef -
prop -
listNode -
seq -
Throws:
AugeasRhqException

updateSimple

void updateSimple(AugeasNode parentNode,
                  org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDef,
                  org.rhq.core.domain.configuration.Property prop,
                  int seq)
                  throws AugeasRhqException
TODO this should be removed from the interface and made protected abstract in ConfigurationToAugeasSimple

Parameters:
parentNode -
propDef -
prop -
seq -
Throws:
AugeasRhqException

updateProperty

void updateProperty(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef,
                    org.rhq.core.domain.configuration.Property parentProp,
                    AugeasNode parentNode,
                    int seq)
                    throws AugeasRhqException
Performs updates in the tree based on the values in the single property (and its descendants).

Parameters:
propDef - the property definition of the property we are applying to the tree
parentProp - the parent property of the property we are dealing with
parentNode - the parent node under which we should apply the property
seq - the sequence number of the property we are applying inside the parentProp
Throws:
AugeasRhqException


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