|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.db.rmi.DbServer
public class DbServer
A generic db-RMI-DbServer.
The db properties file is parsed for the following keywords:
| Constructor Summary | |
|---|---|
DbServer(UserInfo serverInfo)
Creates an instance of an RMI-db-server with default connection object (or configured entirely by db properties file) |
|
DbServer(UserInfo serverInfo,
Class<? extends RemoteDbConnectionImpl> connectionClass)
Creates an instance of an RMI-db-server. |
|
| Method Summary | |
|---|---|
RMIClientSocketFactory |
getClientSocketFactory()
Gets the server's csf |
int |
getCompressedPort()
Get the fixed port for compressed communication |
int |
getCompressedSslPort()
Get the fixed port for compressed+ssl communication |
String[] |
getEnabledCipherSuites()
Gets the enables cipher suites |
String[] |
getEnabledProtocols()
Gets the enabled protocols |
boolean |
getNeedClientAuth()
Determines whether the client need authentication as well. |
int |
getPlainPort()
Get the fixed port for plain communication. |
int |
getPort()
Gets the port the server is listening on |
int |
getPort(int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
Gets the tcp port for a new remote object (e.g. |
RMIServerSocketFactory |
getServerSocketFactory()
Gets the server's ssf |
UserInfo |
getServerUserInfo()
|
int |
getSessionTimeout()
Gets the default session timeout. |
int |
getSslPort()
Get the fixed port for ssl communication |
void |
start()
Starts the server. |
void |
stop()
Stops the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbServer(UserInfo serverInfo,
Class<? extends RemoteDbConnectionImpl> connectionClass)
throws ApplicationException
serverInfo - the servers db-connection user infoconnectionClass - the class of the connection object to instantiate, null = default or from serverInfo's properties file
ApplicationException - if some configuration error
public DbServer(UserInfo serverInfo)
throws ApplicationException
serverInfo - the servers db-connection user info
ApplicationException - if some configuration error| Method Detail |
|---|
public UserInfo getServerUserInfo()
public String[] getEnabledCipherSuites()
public String[] getEnabledProtocols()
public boolean getNeedClientAuth()
public int getPort(int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
throws ApplicationException
port - the requested port by the delegate, 0 = use system defaultcsf - the client socket factory, null = same as connectionssf - the server socket factory, null = same as connection
ApplicationException - if requested port could not be grantedpublic int getPlainPort()
public int getCompressedPort()
public int getSslPort()
public int getCompressedSslPort()
public int getPort()
public RMIClientSocketFactory getClientSocketFactory()
public RMIServerSocketFactory getServerSocketFactory()
public int getSessionTimeout()
public void start()
throws ApplicationException
ApplicationException - if startup failed
public void stop()
throws ApplicationException
Unbinds the connection object.
ApplicationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||