FreeHEP API
Version current

hep.aida.ref.remote.corba
Class CorbaMutableStore

java.lang.Object
  extended byhep.aida.ref.remote.RemoteMutableStore
      extended byhep.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
Source Code:
CorbaMutableStore.java

Nested Class Summary
 
Nested classes inherited from class hep.aida.ref.remote.RemoteMutableStore
RemoteMutableStore.ReadThread
 
Field Summary
 
Fields inherited from class hep.aida.ref.remote.RemoteMutableStore
client, events, hurry, initDone, recursive, remoteLogger, 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, executeStateChanged, executeStateChanged, handleDataUpdate, handleDataUpdate, init, isReadOnly, main, read, read, reloadFolder, reloadWebPage, setHurry, 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
Throws:
IllegalArgumentException

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
Throws:
IllegalArgumentException

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
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.