org.rhq.plugins.apache.augeas
Class AugeasConfigurationApache

java.lang.Object
  extended by org.rhq.rhqtransform.impl.PluginDescriptorBasedAugeasConfiguration
      extended by org.rhq.plugins.apache.augeas.AugeasConfigurationApache
All Implemented Interfaces:
AugeasConfiguration

public class AugeasConfigurationApache
extends PluginDescriptorBasedAugeasConfiguration

Represents the configuration of Augeas needed to parse Apache. In this class, we scan the supplied main configuration file for include directives (recursively) and thus make up the full list of files the concrete Apache configuration is comprised of.

Also, in case the serverRoot is overriden in the configuration files from the default supplied in the configuration object in the constructor, it is updated accordingly.

Author:
Filip Drabek

Field Summary
static String INCLUDE_DIRECTIVE
           
 
Fields inherited from class org.rhq.rhqtransform.impl.PluginDescriptorBasedAugeasConfiguration
AUGEAS_LOAD_PATH, AUGEAS_MODULE_NAME_PROP, DEFAULT_AUGEAS_ROOT_PATH, EXCLUDE_GLOBS_PROP, INCLUDE_GLOBS_PROP, loadPath, modules
 
Constructor Summary
AugeasConfigurationApache(String path, org.rhq.core.domain.configuration.Configuration configuration)
           
 
Method Summary
 List<File> getAllConfigurationFiles()
           
 String getAugeasModuleName()
           
 List<String> getIncludes(File file)
           
 String getServerRootPath()
           
 void loadFiles()
           
 
Methods inherited from class org.rhq.rhqtransform.impl.PluginDescriptorBasedAugeasConfiguration
determineGlobs, getAugeasModuleName, getGlobList, getGlobList, getLoadPath, getMode, getModuleByName, getModules, getRootPath, updateConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCLUDE_DIRECTIVE

public static final String INCLUDE_DIRECTIVE
See Also:
Constant Field Values
Constructor Detail

AugeasConfigurationApache

public AugeasConfigurationApache(String path,
                                 org.rhq.core.domain.configuration.Configuration configuration)
                          throws AugeasRhqException
Throws:
AugeasRhqException
Method Detail

getServerRootPath

public String getServerRootPath()

getAugeasModuleName

public String getAugeasModuleName()

getIncludes

public List<String> getIncludes(File file)

getAllConfigurationFiles

public List<File> getAllConfigurationFiles()

loadFiles

public void loadFiles()
Specified by:
loadFiles in interface AugeasConfiguration
Overrides:
loadFiles in class PluginDescriptorBasedAugeasConfiguration


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