public abstract class AbstractRemoteEntityConnection
extends java.rmi.server.UnicastRemoteObject
DefaultEntityConnectionServer.| Modifier and Type | Field and Description |
|---|---|
protected EntityConnection |
connectionProxy
A Proxy for logging method calls
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRemoteEntityConnection(Domain domain,
ConnectionPool connectionPool,
Database database,
RemoteClient remoteClient,
int port,
boolean loggingEnabled,
java.rmi.server.RMIClientSocketFactory clientSocketFactory,
java.rmi.server.RMIServerSocketFactory serverSocketFactory)
Instantiates a new AbstractRemoteEntityConnection and exports it on the given port number
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnects this connection
|
User |
getUser() |
boolean |
isConnected() |
clone, exportObject, exportObject, exportObject, unexportObjectprotected final transient EntityConnection connectionProxy
protected AbstractRemoteEntityConnection(Domain domain, ConnectionPool connectionPool, Database database, RemoteClient remoteClient, int port, boolean loggingEnabled, java.rmi.server.RMIClientSocketFactory clientSocketFactory, java.rmi.server.RMIServerSocketFactory serverSocketFactory) throws DatabaseException, java.rmi.RemoteException
domain - the domain model entitiesconnectionPool - the connection pool to use, if none is provided a local connection is establisheddatabase - defines the underlying databaseremoteClient - information about the client requesting the connectionport - the port to use when exporting this remote connectionloggingEnabled - specifies whether or not method logging is enabledclientSocketFactory - the client socket factory to use, null for defaultserverSocketFactory - the server socket factory to use, null for defaultjava.rmi.RemoteException - in case of an exceptionDatabaseException - in case a database connection can not be established, for example
if a wrong username or password is providedpublic final User getUser()
public final boolean isConnected()
public final void disconnect()