Class ServerApplication

All Implemented Interfaces:
Application, ConnectionManagerProvider, DomainContextProvider, org.tentackle.session.SessionPoolProvider, org.tentackle.session.SessionProvider

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

    • ServerApplication

      public ServerApplication(String name, String version, Class<? extends 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 Details

    • getRmiServer

      public RmiServer getRmiServer()
      Gets the RMI server.
      Returns:
      the RMI server
    • startup

      protected void startup()
      Overrides:
      startup in class AbstractServerApplication
    • createRmiServer

      protected RmiServer createRmiServer(Class<? extends 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 server's properties config
      Returns:
      the created RmiServer
    • finishStartup

      protected void finishStartup()
      Overrides:
      finishStartup in class AbstractServerApplication
    • startRmiServer

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

      protected void cleanup()
      Overrides:
      cleanup in class AbstractServerApplication