java.lang.Object
org.tentackle.app.AbstractApplication
org.tentackle.persist.app.AbstractServerApplication
org.tentackle.persist.app.ServerApplication
- All Implemented Interfaces:
Application,ConnectionManagerProvider,DomainContextProvider,org.tentackle.session.SessionPoolProvider,org.tentackle.session.SessionProvider
RMI Application Server.
- Author:
- harald
-
Field Summary
Fields inherited from class org.tentackle.app.AbstractApplication
DISABLE_MODIFICATION_TRACKER, DISABLE_SECURITY_MANAGER, ENABLE_STATISTICS, LOCALE, SCRIPTING -
Constructor Summary
ConstructorsConstructorDescriptionServerApplication(String name, String version, Class<? extends RemoteDbConnectionImpl> connectionClass) Creates an instance of an application server. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanup()protected RmiServercreateRmiServer(Class<? extends RemoteDbConnectionImpl> connectionClass) Creates the RMI-server instance (but does not start it).
The default implementation creates aRmiServer.protected voidGets the RMI server.protected voidStarts the RMI-server.
The default implementation just doesrmiServer.start().protected voidstartup()Methods inherited from class org.tentackle.persist.app.AbstractServerApplication
activateStatistics, configureModificationTracker, configurePreferences, configureSessionInfo, createConnectionManager, createRemoteSessionPool, createSessionPool, deregisterJdbcDrivers, detectContainer, getConnectionManager, getRemoteSessionPool, getSession, getSessionPool, initializeScripting, isRunningInContainer, isServer, isSystemExitNecessaryToStop, login, logStatistics, setSessionInfo, validateValidatorsMethods inherited from class org.tentackle.app.AbstractApplication
applyProperties, configure, configureSecurityManager, createDomainContext, createSession, createSessionInfo, getCommandLine, getCreationTime, getDomainContext, getName, getProperties, getProperty, getSessionInfo, getVersion, initialize, isInteractive, logStackdump, setDomainContext, setProperties, start, stop, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tentackle.app.Application
getUser, getUser, register, start, stop, unregisterMethods inherited from interface org.tentackle.pdo.DomainContextProvider
on, on, op, op
-
Constructor Details
-
ServerApplication
public ServerApplication(String name, String version, Class<? extends RemoteDbConnectionImpl> connectionClass) Creates an instance of an application server.- Parameters:
name- the application nameversion- the application versionconnectionClass- the class of the connection object to instantiate, null = default or from serverInfo's properties file
-
-
Method Details
-
getRmiServer
Gets the RMI server.- Returns:
- the RMI server
-
startup
protected void startup()- Overrides:
startupin classAbstractServerApplication
-
createRmiServer
Creates the RMI-server instance (but does not start it).
The default implementation creates aRmiServer.- Parameters:
connectionClass- the class of the connection object to instantiate, null = default or from server's properties config- Returns:
- the created RmiServer
-
finishStartup
protected void finishStartup()- Overrides:
finishStartupin classAbstractServerApplication
-
startRmiServer
protected void startRmiServer()Starts the RMI-server.
The default implementation just doesrmiServer.start(). -
cleanup
protected void cleanup()- Overrides:
cleanupin classAbstractServerApplication
-