|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.tentackle.db.rmi.RemoteDelegateImpl<T>
T - the class handled by this delegatepublic abstract class RemoteDelegateImpl<T>
All remote delegates must extend this class
| Field Summary | |
|---|---|
protected Class<T> |
clazz
class handled by this delegate |
protected RMIClientSocketFactory |
csf
the client socket factory |
protected Db |
db
the local db-connection |
protected int |
port
the connection port |
protected RemoteDbSessionImpl |
session
the server session |
protected RMIServerSocketFactory |
ssf
the server socket factory |
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
RemoteDelegateImpl(RemoteDbSessionImpl session,
Class<T> clazz)
Creates delegate on the session socket. |
|
RemoteDelegateImpl(RemoteDbSessionImpl session,
Class<T> clazz,
int socketConfig)
Creates delegate running on one of the four different predefined session sockets. |
|
RemoteDelegateImpl(RemoteDbSessionImpl session,
Class<T> clazz,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
Creates a delegate. |
|
| Method Summary | |
|---|---|
RMIClientSocketFactory |
getClientSocketFactory()
Gets the client socket factory. |
int |
getPort()
Gets the port number. |
RMIServerSocketFactory |
getServerSocketFactory()
Gets the server socket factory. |
RemoteDbSessionImpl |
getSession()
Gets the server session. |
| 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 |
|---|
protected RemoteDbSessionImpl session
protected Db db
protected Class<T> clazz
protected int port
protected RMIClientSocketFactory csf
protected RMIServerSocketFactory ssf
| Constructor Detail |
|---|
public RemoteDelegateImpl(RemoteDbSessionImpl session,
Class<T> clazz,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
throws RemoteException
session - the RMI sessionclazz - the class the delegate provides service forport - the port number on which the remote object receives calls,
0 = system defaultcsf - the client-side socket factory for making calls to the
remote object, null = system defaultssf - the server-side socket factory for receiving remote calls,
null = system default
RemoteException
public RemoteDelegateImpl(RemoteDbSessionImpl session,
Class<T> clazz)
throws RemoteException
session - is the RMI sessionclazz - is the class the delegate provides service for
RemoteException
public RemoteDelegateImpl(RemoteDbSessionImpl session,
Class<T> clazz,
int socketConfig)
throws RemoteException
session - is the RMI sessionclazz - is the class the delegate provides service forsocketConfig - is of RemoteDbSessionImpl.SOCKETCONFIG_...
RemoteException| Method Detail |
|---|
public RemoteDbSessionImpl getSession()
public int getPort()
public RMIClientSocketFactory getClientSocketFactory()
public RMIServerSocketFactory getServerSocketFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||