FreeHEP API
Version current

hep.aida.dev
Interface IDevTree

All Superinterfaces:
hep.aida.ITree
All Known Implementing Classes:
RemoteTree, Tree

public interface IDevTree
extends hep.aida.ITree

An interface to a Tree that allows adding nodes.

Source Code:
IDevTree.java

Method Summary
 void add(String path, hep.aida.IManagedObject object)
          Add IManagedObject to the directory.
 Object getLock()
           
 void hasBeenFilled(String path)
          Is called by the Store to let Tree know that a particular folder has been filled.
 void setLock(Object lock)
           
 
Methods inherited from interface hep.aida.ITree
cd, close, commit, cp, cp, find, findPath, findTree, isReadOnly, listObjectNames, listObjectNames, listObjectNames, listObjectTypes, listObjectTypes, listObjectTypes, ls, ls, ls, ls, mkdir, mkdirs, mount, mv, name, pwd, rm, rmdir, setOverwrite, setOverwrite, storeName, storeType, symlink, unmount
 

Method Detail

add

public void add(String path,
                hep.aida.IManagedObject object)
         throws IllegalArgumentException
Add IManagedObject to the directory. If some folders in the path don't exist, can create new folders in the tree. Does not overwrite Objects, if IManagedObject already exists - do nothing and just return with, maybe, a warning.

Parameters:
path - The path of the diretory in which the object has to be added.
object - The IManagedObject to be added.
Throws:
IllegalArgumentException - if the path is not a directory.

hasBeenFilled

public void hasBeenFilled(String path)
                   throws IllegalArgumentException
Is called by the Store to let Tree know that a particular folder has been filled. "path" is path to a folder, cannot point to an Object. IDevTree relies on this method for its internal book-keeping, so Store MUST call "hasBeenFilled" after it fills a particular folder.

Parameters:
path - The path of the diretory which has been filled by the Store.
Throws:
IllegalArgumentException - If the path does not exist, or if it is not a directory.

setLock

public void setLock(Object lock)

getLock

public Object getLock()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.