org.neodatis.odb.core.server.connection
Class ConnectionManager

java.lang.Object
  extended by org.neodatis.odb.core.server.connection.ConnectionManager

public class ConnectionManager
extends java.lang.Object


Field Summary
static java.lang.String LOG_ID
           
 
Constructor Summary
ConnectionManager(IStorageEngine engine)
           
 
Method Summary
 IConnection getConnection(java.lang.String connectionId)
           
 java.lang.String getConnectionDescriptions()
           
 int getNbConnections()
           
 IStorageEngine getStorageEngine()
           
 void lockClassForConnection(java.lang.String fullClassName, IConnection connection)
           
 void lockOidForConnection(OID oid, IConnection connection)
           
 IConnection newConnection(java.lang.String ip, long dateTime, int sequence)
           
 void removeConnection(IConnection connection)
           
 void unlockClass(java.lang.String fullClassName, IConnection connection)
           
 void unlockOidForConnection(OID oid, IConnection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_ID

public static final java.lang.String LOG_ID
See Also:
Constant Field Values
Constructor Detail

ConnectionManager

public ConnectionManager(IStorageEngine engine)
Method Detail

newConnection

public IConnection newConnection(java.lang.String ip,
                                 long dateTime,
                                 int sequence)

getConnection

public IConnection getConnection(java.lang.String connectionId)

removeConnection

public void removeConnection(IConnection connection)

getStorageEngine

public IStorageEngine getStorageEngine()

getNbConnections

public int getNbConnections()

getConnectionDescriptions

public java.lang.String getConnectionDescriptions()

lockOidForConnection

public void lockOidForConnection(OID oid,
                                 IConnection connection)
                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

lockClassForConnection

public void lockClassForConnection(java.lang.String fullClassName,
                                   IConnection connection)
                            throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

unlockOidForConnection

public void unlockOidForConnection(OID oid,
                                   IConnection connection)
                            throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

unlockClass

public void unlockClass(java.lang.String fullClassName,
                        IConnection connection)
                 throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException