|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.aida.ref.remote.basic.BasicMutableStore
This is Basic implementation of Read-Only IMutableStore. It has extra methods that allow to change state of the tree and to create IManagedObject in that tree and update its data.
| Field Summary | |
protected boolean |
hurry
|
protected UpdatableQueue |
queue
|
protected IDevTree |
tree
|
| Constructor Summary | |
BasicMutableStore()
Creates a new instance of BasicMutableStore. |
|
BasicMutableStore(boolean hurry)
|
|
BasicMutableStore(IDevTree tree,
boolean hurry)
|
|
| Method Summary | |
void |
close()
Close Store and free all resources associated with it. |
void |
commit(IDevTree tree,
Map options)
Copy data from Tree to the Store. |
hep.aida.IManagedObject |
createObject(String name,
String type)
Create an IManagedObject that can be later updated. |
boolean |
isReadOnly()
Returns true if the store only supports reading. |
static void |
main(String[] args)
|
abstract void |
read(IDevTree tree,
Map options,
boolean readOnly,
boolean createNew)
Populate AIDA Tree: create appropriate AIDA objects in the Tree and fill them with data from the Store. |
abstract void |
read(IDevTree tree,
String path)
Populate folder or create AIDA object in the tree. |
void |
stateChanged(UpdateEvent event)
This method actually does the job of modifying the client tree. |
abstract void |
updateData(String path,
String type)
Initiates the process of updating content for an IManagedObject. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected IDevTree tree
protected UpdatableQueue queue
protected boolean hurry
| Constructor Detail |
public BasicMutableStore()
public BasicMutableStore(boolean hurry)
public BasicMutableStore(IDevTree tree,
boolean hurry)
| Method Detail |
public hep.aida.IManagedObject createObject(String name,
String type)
IDevMutableStore
createObject in interface IDevMutableStorename - Simple name of an object which is to be created, no directories.type - Type of object.
public abstract void updateData(String path,
String type)
IDevMutableStore
updateData in interface IDevMutableStorepath - The path to the object which is to be updated.type - Type of object (this parameter does not have to be used).
public void close()
throws IOException
IStore
close in interface IStoreIOException
public void commit(IDevTree tree,
Map options)
throws IOException
IStore
commit in interface IStoreIOException - If there are problems writing to the Store or the Store is Read-Only.public boolean isReadOnly()
IStore
isReadOnly in interface IStore
public abstract void read(IDevTree tree,
String path)
throws IllegalArgumentException,
IOException
IOnDemandStore
read in interface IOnDemandStorepath - The path to the diretory which is to be filled.
IllegalArgumentException - If the path does not exist, or if it is not a directory.
IOException - If there are problems reading from the Store
public abstract void read(IDevTree tree,
Map options,
boolean readOnly,
boolean createNew)
throws IOException
IStore
read in interface IStoreIOException - If there are problems reading from the Storepublic void stateChanged(UpdateEvent event)
stateChanged in interface AidaUpdatablepublic static void main(String[] args)
|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||