|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.augeas.AugeasProxy
public class AugeasProxy
This is the main entry point for interfacing with Augeas.
The proxy is supplied with 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 Summary | |
|---|---|
AugeasProxy(AugeasConfiguration config)
Instantiates new proxy with supplied configuration and DefaultAugeasTreeBuilder as the tree builder. |
|
AugeasProxy(AugeasConfiguration config,
AugeasTreeBuilder builder)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AugeasProxy(AugeasConfiguration config)
DefaultAugeasTreeBuilder as the tree builder.
config - the augeas configuration.
public AugeasProxy(AugeasConfiguration config,
AugeasTreeBuilder builder)
| Method Detail |
|---|
public AugeasConfiguration getConfiguration()
public AugeasTreeBuilder getTreeBuilder()
public void load()
throws AugeasTreeException
AugeasTreeException
net.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 initialization
AugeasTreeException - 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
finalize in class ObjectThrowablepublic void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||