FreeHEP API
Version v1.2.2

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

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

public class RmiMutableStore
extends RemoteMutableStore

Author:
serbo

Field Summary
 
Fields inherited from class hep.aida.ref.remote.RemoteMutableStore
client, event, hurry, recursive, 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, 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

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
Parameters:
name - Simple name of an object which is to be created, no directories.
aidaType - Type of object.
Throws:
IllegalArgumentException - If unknown type.

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.

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.