org.rhq.augeas.tree.impl
Class AugeasTreeReal

java.lang.Object
  extended by org.rhq.augeas.tree.impl.AbstractAugeasTree
      extended by org.rhq.augeas.tree.impl.AugeasTreeReal
All Implemented Interfaces:
AugeasTree

public class AugeasTreeReal
extends AbstractAugeasTree

Eager representation of the Augeas tree.

Author:
Filip Drabek, Lukas Krejci

Field Summary
 
Fields inherited from interface org.rhq.augeas.tree.AugeasTree
AUGEAS_DATA_PATH, PATH_SEPARATOR
 
Constructor Summary
AugeasTreeReal(net.augeas.Augeas ag, AugeasModuleConfig moduleConfig)
           
 
Method Summary
 AugeasNode createNode(String fullPath)
          Creates a new node on given path.
 void removeNode(AugeasNode node, boolean updateSeq)
          Removes the node from the tree optionally updating the sequence numbers of its siblings.
 
Methods inherited from class org.rhq.augeas.tree.impl.AbstractAugeasTree
createNode, get, getAugeas, getFile, getIncludeGlobs, getLoadedNode, getModuleConfig, getNode, getNodeBuffer, getRootNode, match, matchRelative, save, setRootNode, setValue, summarizeAugeasError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AugeasTreeReal

public AugeasTreeReal(net.augeas.Augeas ag,
                      AugeasModuleConfig moduleConfig)
Method Detail

createNode

public AugeasNode createNode(String fullPath)
                      throws AugeasTreeException
Description copied from interface: AugeasTree
Creates a new node on given path. If there already exists a node on given path, it is returned instead.

Returns:
Throws:
AugeasTreeException

removeNode

public void removeNode(AugeasNode node,
                       boolean updateSeq)
                throws AugeasTreeException
Description copied from interface: AugeasTree
Removes the node from the tree optionally updating the sequence numbers of its siblings.

Parameters:
node - the node to remove
updateSeq - whether to update sequence numbers or not.
Throws:
AugeasTreeException


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