public class ConfigurationToAugeasSimple extends Object implements ConfigurationToAugeas
| Modifier and Type | Field and Description |
|---|---|
protected AugeasTree |
tree |
| Constructor and Description |
|---|
ConfigurationToAugeasSimple() |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected AugeasTree tree
public void setTree(AugeasTree tree)
ConfigurationToAugeassetTree in interface ConfigurationToAugeaspublic void updateResourceConfiguration(AugeasNode node, org.rhq.core.domain.configuration.definition.ConfigurationDefinition resourceConfigDef, org.rhq.core.domain.configuration.Configuration resourceConfig) throws AugeasRhqException
ConfigurationToAugeasupdateResourceConfiguration in interface ConfigurationToAugeasnode - the node to start updating the data fromresourceConfigDef - configuration definition of the configuration objectresourceConfig - the configuration object to read the data fromAugeasRhqExceptionpublic void updateMap(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
org.rhq.core.domain.configuration.Property prop,
AugeasNode mapNode,
int seq)
throws AugeasRhqException
ConfigurationToAugeasupdateMap in interface ConfigurationToAugeasAugeasRhqExceptionpublic void updateList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDef,
org.rhq.core.domain.configuration.Property prop,
AugeasNode listNode,
int seq)
throws AugeasRhqException
ConfigurationToAugeasupdateList in interface ConfigurationToAugeasAugeasRhqExceptionpublic void updateSimple(AugeasNode parentNode, org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDef, org.rhq.core.domain.configuration.Property prop, int seq) throws AugeasRhqException
ConfigurationToAugeasupdateSimple in interface ConfigurationToAugeasAugeasRhqExceptionpublic void updateProperty(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef,
org.rhq.core.domain.configuration.Property parentProp,
AugeasNode parentNode,
int seq)
throws AugeasRhqException
ConfigurationToAugeasupdateProperty 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 parentPropAugeasRhqExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.