Package org.tentackle.test.pdo
Class TestServer
- java.lang.Object
-
- org.tentackle.app.AbstractApplication
-
- org.tentackle.persist.app.AbstractServerApplication
-
- org.tentackle.persist.app.ServerApplication
-
- org.tentackle.test.pdo.TestServer
-
- All Implemented Interfaces:
org.tentackle.dbms.ConnectionManagerProvider,org.tentackle.pdo.DomainContextProvider,org.tentackle.session.SessionPoolProvider,org.tentackle.session.SessionProvider
public class TestServer extends org.tentackle.persist.app.ServerApplicationServer to run client transactions.- Author:
- harald
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestServer.ConnectionImplThe remote connection.static classTestServer.SessionImplThe remote session.
-
Constructor Summary
Constructors Constructor Description TestServer()The server.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <U extends org.tentackle.pdo.PersistentDomainObject<U>>
UgetUser(org.tentackle.pdo.DomainContext context, long userId)static voidmain(java.lang.String[] args)Starts the server.-
Methods inherited from class org.tentackle.persist.app.ServerApplication
cleanup, createRmiServer, finishStartup, getRmiServer, getServerApplication, startRmiServer, startup
-
Methods inherited from class org.tentackle.persist.app.AbstractServerApplication
configurePreferences, configureSessionInfo, createConnectionManager, createSessionPool, deregisterJdbcDrivers, detectContainer, getConnectionManager, getSession, getSessionPool, isRunningInContainer, isServer, isSystemExitNecessaryToStop, login, setSessionInfo
-
Methods inherited from class org.tentackle.app.AbstractApplication
configure, configureModificationTracker, configureSecurityManager, createDomainContext, createSession, createSessionInfo, getCommandLine, getCreationTime, getDomainContext, getName, getProperties, getProperty, getRunningApplication, getSessionInfo, getUser, initialize, logStackdump, register, setDomainContext, setName, setProperties, start, start, stop, stop, toString, unregister
-
-
-
-
Method Detail
-
getUser
public <U extends org.tentackle.pdo.PersistentDomainObject<U>> U getUser(org.tentackle.pdo.DomainContext context, long userId)- Specified by:
getUserin classorg.tentackle.app.AbstractApplication
-
main
public static void main(java.lang.String[] args)
Starts the server.Usage: <classname> [duration=<ms>]
where:
duration = optional time in ms the server will be running. Default is 10000ms (10s).- Parameters:
args- command line arguments
-
-