hep.aida
Interface ITree

All Known Subinterfaces:
IDevTree

public interface ITree

User level interface to a Tree. All paths follow unix convention .., ., /, backslash is the escape character. Relative paths are allowed. NOTE: - this tree keeps a current position (pwd) within the tree. This may be implemented on a per-thread basis.

Version:
$Id: ITree.html,v 1.1 2002/10/08 00:51:18 tonyj Exp $
Author:
Pavel Binko, Dino Ferrero Merlino, Wolfgang Hoschek, Tony Johnson, Andreas Pfeiffer, Mark Donszelmann, Guy Barrand
Source Code:
ITree.java

Method Summary
 void cd(String path)
           
 void close()
           
 void commit()
           
 void cp(String oldPath, String newPath)
           
 void cp(String oldPath, String newPath, boolean recursive)
           
 IManagedObject find(String path)
           
 String findPath(IManagedObject object)
           
 Iterator ls()
           
 Iterator ls(boolean recursive)
           
 Iterator ls(String path)
           
 Iterator ls(String path, boolean recursive)
           
 void mkdir(String path)
           
 void mkdirs(String path)
           
 void mount(String path, ITree tree, String treePath)
          Mounts a tree within another (target) tree.
 void mv(String oldPath, String newPath)
           
 String pwd()
           
 void rm(String path)
           
 void rmdir(String path)
           
 String storeName()
           
 void symlink(String path, String alias)
           
 void unmount(String path)
           
 

Method Detail

storeName

public String storeName()

find

public IManagedObject find(String path)
                    throws IllegalArgumentException

cd

public void cd(String path)
        throws IllegalArgumentException

pwd

public String pwd()

ls

public Iterator ls()

ls

public Iterator ls(boolean recursive)

ls

public Iterator ls(String path)
            throws IllegalArgumentException

ls

public Iterator ls(String path,
                   boolean recursive)
            throws IllegalArgumentException

mkdir

public void mkdir(String path)
           throws IllegalArgumentException

mkdirs

public void mkdirs(String path)
            throws IllegalArgumentException

rmdir

public void rmdir(String path)

rm

public void rm(String path)

findPath

public String findPath(IManagedObject object)
                throws IllegalArgumentException

mv

public void mv(String oldPath,
               String newPath)
        throws IllegalArgumentException

commit

public void commit()
            throws IOException

cp

public void cp(String oldPath,
               String newPath)
        throws IllegalArgumentException

cp

public void cp(String oldPath,
               String newPath,
               boolean recursive)
        throws IllegalArgumentException

symlink

public void symlink(String path,
                    String alias)
             throws IllegalArgumentException

mount

public void mount(String path,
                  ITree tree,
                  String treePath)
           throws IllegalArgumentException
Mounts a tree within another (target) tree. Example:
     target.mount("/home/tonyj",tree,"/");
 
Parameters:
path - The path in the target tree
tree - The tree to mount within the target tree
treePath - the mount point within the tree to be mounted.

unmount

public void unmount(String path)
             throws IllegalArgumentException

close

public void close()
           throws IOException


Copyright © 2000, 2001 AIDA Team, All Rights Reserved.