Class ServerApplication

  • All Implemented Interfaces:
    org.tentackle.dbms.ConnectionManagerProvider, org.tentackle.pdo.DomainContextProvider, org.tentackle.session.SessionPoolProvider, org.tentackle.session.SessionProvider

    public abstract class ServerApplication
    extends AbstractServerApplication
    RMI Application Server.
    Author:
    harald
    • Constructor Detail

      • ServerApplication

        public ServerApplication​(java.lang.String name,
                                 java.lang.String version,
                                 java.lang.Class<? extends org.tentackle.dbms.rmi.RemoteDbConnectionImpl> connectionClass)
        Creates an instance of an application server.
        Parameters:
        name - the application name
        version - the application version
        connectionClass - the class of the connection object to instantiate, null = default or from serverInfo's properties file
    • Method Detail

      • getServerApplication

        public static ServerApplication getServerApplication()
        Gets the running server application.
        Returns:
        the application
      • getRmiServer

        public org.tentackle.dbms.rmi.RmiServer getRmiServer()
        Gets the RMI server.
        Returns:
        the RMI server
      • createRmiServer

        protected org.tentackle.dbms.rmi.RmiServer createRmiServer​(java.lang.Class<? extends org.tentackle.dbms.rmi.RemoteDbConnectionImpl> connectionClass)
        Creates the RMI-server instance (but does not start it).
        The default implementation creates a RmiServer.
        Parameters:
        connectionClass - the class of the connection object to instantiate, null = default or from serverInfo's properties file
        Returns:
        the created RmiServer
      • startRmiServer

        protected void startRmiServer()
        Starts the RMI-server.
        The default implementation just does rmiServer.start().