com.fuse.storage
Class DatabaseProxy

java.lang.Object
  extended by com.fuse.storage.DatabaseProxy

public class DatabaseProxy
extends java.lang.Object

DatabaseProxy returns an RMI/local-reference to the FUSEDatabase. It caches the rmi-reference for couple of minutes.


Field Summary
 long lastReferenceTime
           
 
Constructor Summary
DatabaseProxy(java.lang.String rmiUrl)
           
 
Method Summary
 FUSEDatabase getDatabase()
          Returns the reference to the database.
 void refetchReference()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastReferenceTime

public long lastReferenceTime
Constructor Detail

DatabaseProxy

public DatabaseProxy(java.lang.String rmiUrl)
Method Detail

getDatabase

public FUSEDatabase getDatabase()
Returns the reference to the database. May return null!


refetchReference

public void refetchReference()