Class ServerApplication

    • Constructor Detail

      • 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 Detail

      • getServerApplication

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

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

        protected void validateValidators()
        Validates the validators.
        The default implementation loads all Validators of all PDO classes and invokes Validator.validate(). This will load all CompoundValues and compiles the scripts, if any.
      • 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 serverInfo's properties file
        Returns:
        the created RmiServer
      • startRmiServer

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