org.rhq.rhqtransform
Interface RhqAugeasMapping

All Known Implementing Classes:
RhqAugeasMappingSimple

public interface RhqAugeasMapping

An overarching interface above AugeasToConfiguration and ConfigurationToAugeas to provide an easy default access to the main functionality to the users. The main raison d'etre for this interface is to provide the ability to completely abstract out the dealing with Augeas from the classes that should only deal with RHQ configuration.

Author:
Filip Drabek

Method Summary
 void updateAugeas(AugeasProxy augeasProxy, 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 augeasProxy, org.rhq.core.domain.configuration.definition.ConfigurationDefinition configDef)
          Reads in the RHQ configuration from Augeas.
 

Method Detail

updateAugeas

void updateAugeas(AugeasProxy augeasProxy,
                  org.rhq.core.domain.configuration.Configuration config,
                  org.rhq.core.domain.configuration.definition.ConfigurationDefinition configDef)
                  throws AugeasRhqException
Updates the Augeas data from the RHQ configuration instance.

Parameters:
augeasProxy - the acces to Augeas
config - the configuration to persist
configDef - the definition of the configuration
Throws:
AugeasRhqException

updateConfiguration

org.rhq.core.domain.configuration.Configuration updateConfiguration(AugeasProxy augeasProxy,
                                                                    org.rhq.core.domain.configuration.definition.ConfigurationDefinition configDef)
                                                                    throws AugeasRhqException
Reads in the RHQ configuration from Augeas.

Parameters:
augeasProxy - the access to Augeas
configDef - the configuration definition
Returns:
the configuration created from the definition and the data in Augeas
Throws:
AugeasRhqException


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