|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.rhqtransform.impl.AugeasToConfigurationSimple
public class AugeasToConfigurationSimple
Basic implementation of Augeas mapping to RHQ configuration based on property names.
| Field Summary | |
|---|---|
protected NameMap |
nameMap
|
protected AugeasTree |
tree
|
| Constructor Summary | |
|---|---|
AugeasToConfigurationSimple()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AugeasTree tree
protected NameMap nameMap
| Constructor Detail |
|---|
public AugeasToConfigurationSimple()
| Method Detail |
|---|
public void setTree(AugeasTree tree)
AugeasToConfiguration
setTree in interface AugeasToConfigurationpublic void setNameMap(NameMap nameMap)
AugeasToConfiguration
setNameMap in interface AugeasToConfiguration
public org.rhq.core.domain.configuration.Configuration loadResourceConfiguration(AugeasNode startNode,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition resourceConfigDef)
throws AugeasRhqException
AugeasToConfiguration
loadResourceConfiguration in interface AugeasToConfigurationstartNode - the node to start the mapping fromresourceConfigDef - the configuration definition to use
AugeasRhqException
public org.rhq.core.domain.configuration.Property loadProperty(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef,
AugeasNode parentNode)
throws AugeasRhqException
AugeasToConfiguration
loadProperty in interface AugeasToConfigurationpropDef - the definition of the propertyparentNode - the parent node from which the property should be loaded.
AugeasRhqException
public org.rhq.core.domain.configuration.Property createPropertySimple(org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDefSimple,
AugeasNode node)
throws AugeasRhqException
AugeasToConfiguration
createPropertySimple in interface AugeasToConfigurationpropDefSimple - the definition of the propertynode - the parent node where the property should be looked for
AugeasRhqException
public org.rhq.core.domain.configuration.PropertyMap createPropertyMap(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
AugeasNode node)
throws AugeasRhqException
AugeasToConfiguration
createPropertyMap in interface AugeasToConfigurationpropDefMap - the definition of the property mapnode - the parent node
AugeasRhqException
public org.rhq.core.domain.configuration.Property createPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList,
AugeasNode node)
throws AugeasRhqException
AugeasToConfiguration
createPropertyList in interface AugeasToConfigurationAugeasRhqException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||