org.rhq.augeas.tree.impl
Class AugeasTreeLazy

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

public class AugeasTreeLazy
extends AbstractAugeasTree

Lazy implementation 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
AugeasTreeLazy(net.augeas.Augeas ag, AugeasModuleConfig moduleConfig)
           
 
Method Summary
 AugeasNode createNode(String fullPath)
          Creates a new node on given path.
protected  AugeasNode instantiateNode(String fullPath)
           
 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

AugeasTreeLazy

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

instantiateNode

protected AugeasNode instantiateNode(String fullPath)

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.