org.rhq.augeas.config
Class AugeasConfigurationSimple

java.lang.Object
  extended by org.rhq.augeas.config.AugeasConfigurationSimple
All Implemented Interfaces:
AugeasConfiguration

public class AugeasConfigurationSimple
extends Object
implements AugeasConfiguration

Basic implementation of the AugeasConfiguration.

Author:
Filip Drabek

Constructor Summary
AugeasConfigurationSimple()
           
 
Method Summary
 void addModuleConfig(AugeasModuleConfig config)
           
 String getLoadPath()
           
 int getMode()
           
 AugeasModuleConfig getModuleByName(String name)
           
 List<AugeasModuleConfig> getModules()
           
 String getRootPath()
           
 void loadFiles()
          Checks that all the files to be loaded, specified by the modules, exist.
 void setLoadPath(String loadPath)
          Sets the path to the Augeas lenses directory.
 void setMode(int mode)
          Sets the Augeas load mode.
 void setModules(List<AugeasModuleConfig> modules)
          Sets the modules to use.
 void setRootPath(String rootPath)
          Sets the path to the file system root used by Augeas.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AugeasConfigurationSimple

public AugeasConfigurationSimple()
Method Detail

setLoadPath

public void setLoadPath(String loadPath)
Sets the path to the Augeas lenses directory.

Parameters:
loadPath -

setMode

public void setMode(int mode)
Sets the Augeas load mode.

Parameters:
mode -
See Also:
Augeas#Augeas(int)}

setRootPath

public void setRootPath(String rootPath)
Sets the path to the file system root used by Augeas.

Parameters:
rootPath -

setModules

public void setModules(List<AugeasModuleConfig> modules)
Sets the modules to use.

Parameters:
modules -

getLoadPath

public String getLoadPath()
Specified by:
getLoadPath in interface AugeasConfiguration
Returns:
path to the augeas lenses directory

getMode

public int getMode()
Specified by:
getMode in interface AugeasConfiguration
Returns:
augeas loading mode
See Also:
Augeas#Augeas(int)}

getModules

public List<AugeasModuleConfig> getModules()
Specified by:
getModules in interface AugeasConfiguration
Returns:
the list of modules augeas should load

getRootPath

public String getRootPath()
Specified by:
getRootPath in interface AugeasConfiguration
Returns:
The filesystem root path for augeas tree.

addModuleConfig

public void addModuleConfig(AugeasModuleConfig config)

getModuleByName

public AugeasModuleConfig getModuleByName(String name)
Specified by:
getModuleByName in interface AugeasConfiguration
Returns:
a module configuration by name

loadFiles

public void loadFiles()
Checks that all the files to be loaded, specified by the modules, exist.

Specified by:
loadFiles in interface AugeasConfiguration
See Also:
AugeasConfiguration.loadFiles()


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