Class 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.ServerApplication
    Server to run client transactions.
    Author:
    harald
    • 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>>
      U
      getUser​(org.tentackle.pdo.DomainContext context, long userId)  
      static void main​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.tentackle.pdo.DomainContextProvider

        on, op
    • Constructor Detail

      • TestServer

        public TestServer()
        The server.
    • Method Detail

      • getUser

        public <U extends org.tentackle.pdo.PersistentDomainObject<U>> U getUser​(org.tentackle.pdo.DomainContext context,
                                                                                 long userId)
        Specified by:
        getUser in class org.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