org.rhq.plugins.apache.augeas.mappingImpl
Class MappingParamPerMap

java.lang.Object
  extended by org.rhq.rhqtransform.impl.AugeasToConfigurationSimple
      extended by org.rhq.plugins.apache.augeas.mappingImpl.MappingParamPerMap
All Implemented Interfaces:
AugeasToConfiguration

public class MappingParamPerMap
extends AugeasToConfigurationSimple

The most complicated mapping strategy. It is used when we have a list of maps in the configuration and each map corresponds only to a parameter (or more) of a directive (i.e. single directive can be mapped as multiple maps). This tries to map each (set of) parameters of a directive as a standalone map. The map definition's name is taken as the name of the directive to look for. Then for all such directives, take all their parameters, chunk them up by the number of sub-properties of the map and assign params from each chunk to a new map. Each map is supposed to contain the "_index" property (ApacheServerComponent.AUXILIARY_INDEX_PROP) which is set to the index of the corresponding directive in the config file.

Author:
Lukas Krejci

Field Summary
 
Fields inherited from class org.rhq.rhqtransform.impl.AugeasToConfigurationSimple
nameMap, tree
 
Constructor Summary
MappingParamPerMap()
           
 
Method Summary
 org.rhq.core.domain.configuration.Property createPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList, AugeasNode node)
           
 
Methods inherited from class org.rhq.rhqtransform.impl.AugeasToConfigurationSimple
createPropertyMap, createPropertySimple, loadProperty, loadResourceConfiguration, setNameMap, setTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingParamPerMap

public MappingParamPerMap()
Method Detail

createPropertyList

public org.rhq.core.domain.configuration.Property createPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList,
                                                                     AugeasNode node)
                                                              throws AugeasRhqException
Specified by:
createPropertyList in interface AugeasToConfiguration
Overrides:
createPropertyList in class AugeasToConfigurationSimple
Throws:
AugeasRhqException


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