|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.rhqtransform.impl.ConfigurationToAugeasSimple
public class ConfigurationToAugeasSimple
Basic implementation of updating the Augeas with data from RHQ configuration. The mapping is based on the RHQ property names.
| Field Summary | |
|---|---|
protected AugeasTree |
tree
|
| Constructor Summary | |
|---|---|
ConfigurationToAugeasSimple()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AugeasTree tree
| Constructor Detail |
|---|
public ConfigurationToAugeasSimple()
| Method Detail |
|---|
public void setTree(AugeasTree tree)
ConfigurationToAugeas
setTree in interface ConfigurationToAugeas
public void updateResourceConfiguration(AugeasNode node,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition resourceConfigDef,
org.rhq.core.domain.configuration.Configuration resourceConfig)
throws AugeasRhqException
ConfigurationToAugeas
updateResourceConfiguration in interface ConfigurationToAugeasnode - the node to start updating the data fromresourceConfigDef - configuration definition of the configuration objectresourceConfig - the configuration object to read the data from
AugeasRhqException
public void updateMap(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
org.rhq.core.domain.configuration.Property prop,
AugeasNode mapNode,
int seq)
throws AugeasRhqException
ConfigurationToAugeas
updateMap in interface ConfigurationToAugeasAugeasRhqException
public void updateList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDef,
org.rhq.core.domain.configuration.Property prop,
AugeasNode listNode,
int seq)
throws AugeasRhqException
ConfigurationToAugeas
updateList in interface ConfigurationToAugeasAugeasRhqException
public void updateSimple(AugeasNode parentNode,
org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDef,
org.rhq.core.domain.configuration.Property prop,
int seq)
throws AugeasRhqException
ConfigurationToAugeas
updateSimple in interface ConfigurationToAugeasAugeasRhqException
public void updateProperty(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef,
org.rhq.core.domain.configuration.Property parentProp,
AugeasNode parentNode,
int seq)
throws AugeasRhqException
ConfigurationToAugeas
updateProperty in interface ConfigurationToAugeaspropDef - the property definition of the property we are applying to the treeparentProp - the parent property of the property we are dealing withparentNode - the parent node under which we should apply the propertyseq - the sequence number of the property we are applying inside the parentProp
AugeasRhqException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||