org.rhq.rhqtransform.impl
Class RhqAugeasMappingSimple
java.lang.Object
org.rhq.rhqtransform.impl.RhqAugeasMappingSimple
- All Implemented Interfaces:
- RhqAugeasMapping
public class RhqAugeasMappingSimple
- extends Object
- implements RhqAugeasMapping
Default implementation of the RhqAugeasMapping interface based on
AugeasToConfigurationSimple and ConfigurationToAugeasSimple.
- Author:
- Filip Drabek
|
Method Summary |
protected AugeasNode |
getStartNode(AugeasTree tree)
|
void |
updateAugeas(AugeasProxy component,
org.rhq.core.domain.configuration.Configuration config,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition configDef)
Updates the Augeas data from the RHQ configuration instance. |
org.rhq.core.domain.configuration.Configuration |
updateConfiguration(AugeasProxy augeasComponent,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition configDef)
Reads in the RHQ configuration from Augeas. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RhqAugeasMappingSimple
public RhqAugeasMappingSimple(String moduleName)
RhqAugeasMappingSimple
public RhqAugeasMappingSimple(AugeasToConfiguration toConfig,
ConfigurationToAugeas toAugeas,
String moduleName)
updateAugeas
public void updateAugeas(AugeasProxy component,
org.rhq.core.domain.configuration.Configuration config,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition configDef)
throws AugeasRhqException
- Description copied from interface:
RhqAugeasMapping
- Updates the Augeas data from the RHQ configuration instance.
- Specified by:
updateAugeas in interface RhqAugeasMapping
- Parameters:
component - the acces to Augeasconfig - the configuration to persistconfigDef - the definition of the configuration
- Throws:
AugeasRhqException
updateConfiguration
public org.rhq.core.domain.configuration.Configuration updateConfiguration(AugeasProxy augeasComponent,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition configDef)
throws AugeasRhqException
- Description copied from interface:
RhqAugeasMapping
- Reads in the RHQ configuration from Augeas.
- Specified by:
updateConfiguration in interface RhqAugeasMapping
- Parameters:
augeasComponent - the access to AugeasconfigDef - the configuration definition
- Returns:
- the configuration created from the definition and the data in Augeas
- Throws:
AugeasRhqException
getStartNode
protected AugeasNode getStartNode(AugeasTree tree)
throws AugeasRhqException
- Throws:
AugeasRhqException
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.