FreeHEP API
Version current

hep.aida.ref.remote.rmi.client
Class RmiMutableStore

java.lang.Object
  extended byhep.aida.ref.remote.RemoteMutableStore
      extended byhep.aida.ref.remote.rmi.client.RmiMutableStore
All Implemented Interfaces:
AidaUpdatable, IDevMutableStore, IMutableStore, IOnDemandStore, IStore

public class RmiMutableStore
extends RemoteMutableStore

Author:
serbo
Source Code:
RmiMutableStore.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
RmiMutableStore()
          Creates a new instance of RmiMutableStore
 
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 init()
           
 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, 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

RmiMutableStore

public RmiMutableStore()
Creates a new instance of RmiMutableStore

Method Detail

init

public void init()
Overrides:
init in class RemoteMutableStore

createClient

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

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

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

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.