java.lang.Object
org.tentackle.app.AbstractApplication
org.tentackle.persist.app.AbstractServerApplication
org.tentackle.persist.app.ServerApplication
- All Implemented Interfaces:
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.static ServerApplicationGets the running server application.protected voidprotected voidStarts the RMI-server.
The default implementation just doesrmiServer.start().protected voidstartup()protected voidValidates the validators.
The default implementation loads allValidators of all PDO classes and invokesValidator.validate().Methods inherited from class org.tentackle.persist.app.AbstractServerApplication
activateStatistics, configureModificationTracker, configurePreferences, configureSessionInfo, createConnectionManager, createRemoteSessionPool, createSessionPool, deregisterJdbcDrivers, detectContainer, getConnectionManager, getRemoteSessionPool, getSession, getSessionPool, isRunningInContainer, isServerImpl, isSystemExitNecessaryToStop, login, setSessionInfoMethods inherited from class org.tentackle.app.AbstractApplication
applyProperties, configure, configureSecurityManager, createDomainContext, createSession, createSessionInfo, getCommandLine, getCreationTime, getDomainContext, getName, getProperties, getProperty, getRunningApplication, getSessionInfo, getUser, getUser, getVersion, initialize, isInteractive, isInteractiveImpl, isServer, logStackdump, register, setDomainContext, setProperties, start, start, stop, stop, toString, unregisterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tentackle.pdo.DomainContextProvider
on, 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
-
getServerApplication
Gets the running server application.- Returns:
- the application
-
getRmiServer
Gets the RMI server.- Returns:
- the RMI server
-
startup
protected void startup()- Overrides:
startupin classAbstractServerApplication
-
initializeScripting
protected void initializeScripting()- Overrides:
initializeScriptingin classAbstractApplication
-
validateValidators
protected void validateValidators()Validates the validators.
The default implementation loads allValidators of all PDO classes and invokesValidator.validate(). This will load allCompoundValues and compiles the scripts, if any. -
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 serverInfo's properties file- 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
-