FreeHEP API
Version v1.2.2

hep.aida.ref.remote.corba
Class CorbaMutableStore

java.lang.Object
  |
  +--hep.aida.ref.remote.RemoteMutableStore
        |
        +--hep.aida.ref.remote.corba.CorbaMutableStore
All Implemented Interfaces:
AidaUpdatable, IDevMutableStore, IMutableStore, IOnDemandStore, IStore

public final class CorbaMutableStore
extends RemoteMutableStore

This is implementation of IDevMutableStore that works with AIDA CORBA Client. Supported options: ior=ior_value iorFileURL=file_URL ServerName=name_of_server_in_CORBA_Name_service

Author:
serbo

Field Summary
 
Fields inherited from class hep.aida.ref.remote.RemoteMutableStore
client, event, hurry, recursive, tree
 
Constructor Summary
CorbaMutableStore()
          Creates a new instance of CorbaMutableStore
 
Method Summary
 void close()
          Close Store and free all resources associated with it.
protected  RemoteClient createClient(Map options)
           
 hep.aida.IManagedObject createObject(String name, String aidaType)
          Create an IManagedObject that can be later updated.
 void updateData(String path, String aidaType)
          Initiates the process of updating content for an IManagedObject.
 
Methods inherited from class hep.aida.ref.remote.RemoteMutableStore
commit, init, isReadOnly, main, read, read, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorbaMutableStore

public CorbaMutableStore()
Creates a new instance of CorbaMutableStore

Method Detail

createClient

protected RemoteClient createClient(Map options)
Specified by:
createClient in class RemoteMutableStore

updateData

public void updateData(String path,
                       String aidaType)
                throws IllegalArgumentException
Description copied from interface: IDevMutableStore
Initiates the process of updating content for an IManagedObject. Can be done synchronously or can just schedule update in some queue. If validation mechanism is used for updates, servant's "setValid(path)" method should be called here after successfull date update.

Specified by:
updateData in interface IDevMutableStore
Specified by:
updateData in class RemoteMutableStore
Parameters:
path - The path to the object which is to be updated.
aidaType - Type of object (this parameter does not have to be used).
Throws:
IllegalArgumentException - If the path does not exist, or if it is a directory.

createObject

public hep.aida.IManagedObject createObject(String name,
                                            String aidaType)
                                     throws IllegalArgumentException
Description copied from interface: IDevMutableStore
Create an IManagedObject that can be later updated. If object already exist, do not overwrite it, just return with, maybe, a warning.

Specified by:
createObject in interface IDevMutableStore
Specified by:
createObject in class RemoteMutableStore
Parameters:
name - Simple name of an object which is to be created, no directories.
aidaType - Type of object.
Throws:
IllegalArgumentException - If unknown type.

close

public void close()
           throws IOException
Description copied from interface: IStore
Close Store and free all resources associated with it. Should be called from ITree.close() method only. After the Store is closed, the Tree associated with it becomes unusable.

Specified by:
close in interface IStore
Overrides:
close in class RemoteMutableStore
IOException

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.