public class AugeasProxy extends Object
AugeasConfiguration that configures
what and how Augeas should load and optionally with an AugeasTreeBuilder which
specifies how to build an in memory representation of the tree returned from Augeas
itself (see AugeasTree).| Constructor and Description |
|---|
AugeasProxy(AugeasConfiguration config)
Instantiates new proxy with supplied configuration and
DefaultAugeasTreeBuilder as the tree builder. |
AugeasProxy(AugeasConfiguration config,
AugeasTreeBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
net.augeas.Augeas |
getAugeas() |
AugeasTree |
getAugeasTree(String moduleName,
boolean lazy)
Produces the Augeas tree by loading it from augeas (if
load() wasn't called already)
and calling out to the tree builder to construct the tree. |
AugeasConfiguration |
getConfiguration() |
AugeasTreeBuilder |
getTreeBuilder() |
void |
load()
Initializes and loads the Augeas tree.
|
String |
printTree(String path)
A helper method to produce the string representation of the tree.
|
public AugeasProxy(AugeasConfiguration config)
DefaultAugeasTreeBuilder as the tree builder.config - the augeas configuration.public AugeasProxy(AugeasConfiguration config, AugeasTreeBuilder builder)
public AugeasConfiguration getConfiguration()
public AugeasTreeBuilder getTreeBuilder()
public void load()
throws AugeasTreeException
AugeasTreeExceptionnet.augeas.AugeasException - if Augeas could not be initialized.public AugeasTree getAugeasTree(String moduleName, boolean lazy) throws AugeasTreeException
load() wasn't called already)
and calling out to the tree builder to construct the tree.moduleName - the name of the Augeas module to use for loadinglazy - true if the tree is lazily initialized, false for eager initializationAugeasTreeException - if the specified module wasn't configured or if there was some error loading
the tree.public String printTree(String path)
path - public net.augeas.Augeas getAugeas()
protected void finalize()
throws Throwable
public void close()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.