Ontimize 5.2071EN

com.ontimize.util.remote
Class AbstractRemoteReference

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bycom.ontimize.util.remote.AbstractRemoteReference
All Implemented Interfaces:
java.rmi.Remote, java.io.Serializable
Direct Known Subclasses:
DatabaseBundleManager

public abstract class AbstractRemoteReference
extends java.rmi.server.UnicastRemoteObject

Base class to create a remote object. This class is typically referenced in remoteReferences.xml file.

Since:
5.2057EN-1.0
Author:
Imatia Innovation SL
See Also:
Serialized Form

Field Summary
static java.lang.String DATABASE_CONNECTION_MANAGER_ID
           
protected  java.lang.String dbConnectionManagerId
           
protected  EntityReferenceLocator locator
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
AbstractRemoteReference(int port, EntityReferenceLocator locator, java.util.Hashtable params)
           
 
Method Summary
 OntimizeConnection connect()
           
 OntimizeConnection connect(int sessionId)
           
 void disconnect(OntimizeConnection connection)
          Returns the connection to the DatabaseConnectionManager, by calling unlock(connection) method.
protected  DatabaseConnectionManager getDatabaseConnectionManager()
          Get the reference to the DatabaseConnectionManager
 Entity getEntityReference(java.lang.String entityName)
          Get an Entity reference
protected  boolean hasSession(int sessionId)
           
protected  void init(java.util.Hashtable params)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DATABASE_CONNECTION_MANAGER_ID

public static final java.lang.String DATABASE_CONNECTION_MANAGER_ID
See Also:
Constant Field Values

locator

protected EntityReferenceLocator locator

dbConnectionManagerId

protected java.lang.String dbConnectionManagerId
Constructor Detail

AbstractRemoteReference

public AbstractRemoteReference(int port,
                               EntityReferenceLocator locator,
                               java.util.Hashtable params)
                        throws java.lang.Exception
Method Detail

init

protected void init(java.util.Hashtable params)

getEntityReference

public Entity getEntityReference(java.lang.String entityName)
                          throws java.lang.Exception
Get an Entity reference

Parameters:
entityName - Name of the entity
Returns:
Throws:
java.lang.Exception

getDatabaseConnectionManager

protected DatabaseConnectionManager getDatabaseConnectionManager()
Get the reference to the DatabaseConnectionManager

Returns:

connect

public OntimizeConnection connect(int sessionId)
                           throws java.lang.Exception
Throws:
java.lang.Exception

connect

public OntimizeConnection connect()
                           throws java.lang.Exception
Throws:
java.lang.Exception

disconnect

public void disconnect(OntimizeConnection connection)
Returns the connection to the DatabaseConnectionManager, by calling unlock(connection) method.

Parameters:
connection -

hasSession

protected boolean hasSession(int sessionId)

Ontimize