|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.appworx.AbstractApplication
org.tentackle.appworx.ApplicationServer
public class ApplicationServer
Application Server.
| Constructor Summary | |
|---|---|
ApplicationServer(Class<? extends RemoteDbConnectionImpl> connectionClass)
Creates an instance of an application server. |
|
| Method Summary | |
|---|---|
ConnectionManager |
createConnectionManager()
Creates the connection manager for the client sessions. |
DbPool |
createDbPool()
Creates the logical DbPool. |
protected DbServer |
createDbServer(Class<? extends RemoteDbConnectionImpl> connectionClass)
Creates the DbServer instance (but does not start it). The default implementation creates a DbServer. |
protected void |
doFinishStartup()
Finishes the startup. The default implementation starts the modification thread, unless "--nomodthread" given, creates the connection manager, the Db pool,
and the DbServer instance. |
protected void |
doLogin()
Connects the server to the database backend. |
protected void |
doStartDbServer()
Starts the RMI-server. |
protected void |
doStop(int exitValue)
Terminates the application server gracefully. |
CommandLine |
getCommandLine()
Gets the command line. |
DbServer |
getDbServer()
Gets the RMI server. |
void |
start()
Starts the application server without further arguments. |
void |
start(String[] args)
Starts the application server. |
void |
stop()
Gracefully terminates the application server. |
| Methods inherited from class org.tentackle.appworx.AbstractApplication |
|---|
createContextDb, createDb, createModificationThread, createUserInfo, detectEE, detectJNLP, doConfigureApplication, doInitialize, getContextDb, getDb, getProperties, getProperty, getRunningApplication, getUser, getUser, getUserInfo, installPreferences, installSecurityManager, isDeployedByEE, isDeployedByJNLP, register, securityRulesChanged, setContextDb, setProperties, setUserInfo, unregister, updateUserId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationServer(Class<? extends RemoteDbConnectionImpl> connectionClass)
connectionClass - the class of the connection object to instantiate, null = default or from serverInfo's properties file| Method Detail |
|---|
public CommandLine getCommandLine()
public DbServer getDbServer()
public void start(String[] args)
args - the arguments (usually from commandline)public void start()
public void stop()
protected DbServer createDbServer(Class<? extends RemoteDbConnectionImpl> connectionClass)
throws ApplicationException
DbServer.
connectionClass - the class of the connection object to instantiate, null = default or from serverInfo's properties file
ApplicationExceptionpublic ConnectionManager createConnectionManager()
public DbPool createDbPool()
protected void doLogin()
throws ApplicationException
ApplicationException
protected void doFinishStartup()
throws ApplicationException
"--nomodthread" given, creates the connection manager, the Db pool,
and the DbServer instance.
doFinishStartup in class AbstractApplicationApplicationException
protected void doStartDbServer()
throws ApplicationException
dbServer.start().
ApplicationExceptionprotected void doStop(int exitValue)
exitValue - the doStop value for System.exit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||