hep.aida.ref.remote
Class RemoteTree
java.lang.Object
hep.aida.ref.event.AIDAObservable
hep.aida.ref.remote.RemoteTree
- All Implemented Interfaces:
- IDevTree, IsObservable, hep.aida.ITree
- public class RemoteTree
- extends AIDAObservable
- implements IDevTree, IsObservable
- Author:
- serbo
- Source Code:
- RemoteTree.java
Method Summary |
void |
add(String path,
hep.aida.IManagedObject object)
Add IManagedObject to the directory.
|
void |
addFolder(String path)
|
void |
addObject(String path,
hep.aida.IManagedObject object)
|
void |
cd(String str)
|
void |
close()
|
void |
commit()
|
String |
correctPath(String path,
boolean isDir)
|
void |
cp(String str,
String str1)
|
void |
cp(String str,
String str1,
boolean param)
|
protected IStore |
createStore()
|
int |
doUpdate(String updatePath)
|
protected void |
executeClose()
|
hep.aida.IManagedObject |
executeFind(String path)
|
protected String[] |
executeListObjectNames(String path,
boolean recursive)
|
protected String[] |
executeListObjectTypes(String path,
boolean recursive)
|
hep.aida.IManagedObject |
find(String path)
|
String |
findPath(hep.aida.IManagedObject iManagedObject)
|
hep.aida.ITree |
findTree(String str)
|
Object |
getLock()
|
void |
hasBeenFilled(String path)
Is called by the Store to let Tree know that a particular folder has been filled.
|
void |
init(String storeName,
boolean readOnly,
boolean createNew,
String storeType,
String options,
boolean readOnlyUserDefined)
|
boolean |
isReadOnly()
|
String[] |
listObjectNames()
|
String[] |
listObjectNames(String path)
|
String[] |
listObjectNames(String path,
boolean param)
|
String[] |
listObjectTypes()
|
String[] |
listObjectTypes(String path)
|
String[] |
listObjectTypes(String path,
boolean param)
|
void |
ls()
|
void |
ls(String str)
|
void |
ls(String str,
boolean param)
|
void |
ls(String str,
boolean param,
OutputStream outputStream)
|
static void |
main(String[] args)
|
void |
mkdir(String str)
|
void |
mkdirs(String str)
|
void |
mount(String str,
hep.aida.ITree iTree,
String str2)
|
void |
mv(String str,
String str1)
|
String |
name()
|
String |
pwd()
|
void |
rm(String str)
|
void |
rmdir(String str)
|
void |
setLock(Object lock)
|
void |
setOverwrite()
|
void |
setOverwrite(boolean param)
|
String |
storeName()
|
String |
storeType()
|
void |
submitEventToListeners(AidaUpdateEvent ev)
|
void |
symlink(String str,
String str1)
|
void |
unmount(String str)
|
Methods inherited from class hep.aida.ref.event.AIDAObservable |
addListener, createEvent, fireStateChanged, fireStateChanged, fireStateChanged, isConnected, removeAllListeners, removeListener, setConnected, setIsValidAfterNotify, setValid, setValidForAll |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
aidaStore
protected IStore aidaStore
storeType
protected String storeType
optionsMap
protected Map optionsMap
overwrite
protected boolean overwrite
updateBuffer
protected Vector updateBuffer
remoteLogger
protected Logger remoteLogger
map
protected TreeMap map
RemoteTree
public RemoteTree()
- Creates a new instance of RemoteTree
RemoteTree
public RemoteTree(String name)
RemoteTree
public RemoteTree(String name,
IDevMutableStore aidaStore)
RemoteTree
public RemoteTree(String name,
IDevMutableStore aidaStore,
boolean overwrite)
RemoteTree
public RemoteTree(String name,
IDevMutableStore aidaStore,
boolean overwrite,
boolean appendAxisType)
submitEventToListeners
public void submitEventToListeners(AidaUpdateEvent ev)
init
public void init(String storeName,
boolean readOnly,
boolean createNew,
String storeType,
String options,
boolean readOnlyUserDefined)
throws IOException
- Throws:
IOException
createStore
protected IStore createStore()
throws IOException
- Throws:
IOException
correctPath
public String correctPath(String path,
boolean isDir)
executeListObjectNames
protected String[] executeListObjectNames(String path,
boolean recursive)
executeListObjectTypes
protected String[] executeListObjectTypes(String path,
boolean recursive)
executeFind
public hep.aida.IManagedObject executeFind(String path)
executeClose
protected void executeClose()
addObject
public void addObject(String path,
hep.aida.IManagedObject object)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
addFolder
public void addFolder(String path)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
doUpdate
public int doUpdate(String updatePath)
getLock
public Object getLock()
- Specified by:
getLock
in interface IDevTree
setLock
public void setLock(Object lock)
- Specified by:
setLock
in interface IDevTree
close
public void close()
throws IOException
- Specified by:
close
in interface hep.aida.ITree
- Throws:
IOException
find
public hep.aida.IManagedObject find(String path)
throws IllegalArgumentException
- Specified by:
find
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
hasBeenFilled
public void hasBeenFilled(String path)
throws IllegalArgumentException
- Description copied from interface:
IDevTree
- 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.
- Specified by:
hasBeenFilled
in interface IDevTree
- 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.
listObjectNames
public String[] listObjectNames(String path)
throws IllegalArgumentException
- Specified by:
listObjectNames
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
listObjectNames
public String[] listObjectNames(String path,
boolean param)
throws IllegalArgumentException
- Specified by:
listObjectNames
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
listObjectTypes
public String[] listObjectTypes(String path)
throws IllegalArgumentException
- Specified by:
listObjectTypes
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
listObjectTypes
public String[] listObjectTypes(String path,
boolean param)
throws IllegalArgumentException
- Specified by:
listObjectTypes
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
findPath
public String findPath(hep.aida.IManagedObject iManagedObject)
throws IllegalArgumentException
- Specified by:
findPath
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
setOverwrite
public void setOverwrite()
- Specified by:
setOverwrite
in interface hep.aida.ITree
setOverwrite
public void setOverwrite(boolean param)
- Specified by:
setOverwrite
in interface hep.aida.ITree
storeName
public String storeName()
- Specified by:
storeName
in interface hep.aida.ITree
name
public String name()
- Specified by:
name
in interface hep.aida.ITree
storeType
public String storeType()
- Specified by:
storeType
in interface hep.aida.ITree
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interface hep.aida.ITree
add
public void add(String path,
hep.aida.IManagedObject object)
throws IllegalArgumentException
- Description copied from interface:
IDevTree
- 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.
- Specified by:
add
in interface IDevTree
- 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.
mkdir
public void mkdir(String str)
throws IllegalArgumentException
- Specified by:
mkdir
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
mkdirs
public void mkdirs(String str)
throws IllegalArgumentException
- Specified by:
mkdirs
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
rm
public void rm(String str)
throws IllegalArgumentException
- Specified by:
rm
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
rmdir
public void rmdir(String str)
throws IllegalArgumentException
- Specified by:
rmdir
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
symlink
public void symlink(String str,
String str1)
throws IllegalArgumentException
- Specified by:
symlink
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
unmount
public void unmount(String str)
throws IllegalArgumentException
- Specified by:
unmount
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
mount
public void mount(String str,
hep.aida.ITree iTree,
String str2)
throws IllegalArgumentException
- Specified by:
mount
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
mv
public void mv(String str,
String str1)
throws IllegalArgumentException
- Specified by:
mv
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
pwd
public String pwd()
- Specified by:
pwd
in interface hep.aida.ITree
ls
public void ls()
throws IllegalArgumentException
- Specified by:
ls
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
ls
public void ls(String str)
throws IllegalArgumentException
- Specified by:
ls
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
ls
public void ls(String str,
boolean param)
throws IllegalArgumentException
- Specified by:
ls
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
ls
public void ls(String str,
boolean param,
OutputStream outputStream)
throws IllegalArgumentException
- Specified by:
ls
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
cd
public void cd(String str)
throws IllegalArgumentException
- Specified by:
cd
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
commit
public void commit()
throws IOException
- Specified by:
commit
in interface hep.aida.ITree
- Throws:
IOException
cp
public void cp(String str,
String str1)
throws IllegalArgumentException
- Specified by:
cp
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
cp
public void cp(String str,
String str1,
boolean param)
throws IllegalArgumentException
- Specified by:
cp
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
findTree
public hep.aida.ITree findTree(String str)
throws IllegalArgumentException
- Specified by:
findTree
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
listObjectNames
public String[] listObjectNames()
throws IllegalArgumentException
- Specified by:
listObjectNames
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
listObjectTypes
public String[] listObjectTypes()
throws IllegalArgumentException
- Specified by:
listObjectTypes
in interface hep.aida.ITree
- Throws:
IllegalArgumentException
main
public static void main(String[] args)
- Parameters:
args
- the command line arguments
Copyright © 2000-2004 FreeHEP, All Rights Reserved.