Interface Server

All Known Implementing Classes:
NoOpServer

public interface Server
A generic server, something that can be started or stopped and, finally, disposed. A platform managed server is instantiated via a public constructor receiving a String[] with command-line arguments - intended for handcrafted servers - or (less priority) a public non-arg constructor - intended for generated servers.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    Start the server without waiting time/blocking.
    void
    stop(boolean dispose)
    Stop the server.
    static void
    stop(Server server, boolean dispose)
    Stops a given server instance.
  • Method Details

    • start

      Server start()
      Start the server without waiting time/blocking.
      Returns:
      this
    • stop

      void stop(boolean dispose)
      Stop the server. So far, we make no statement whether re-starting the server is possible, but it is safe to assume that re-starting is not foreseen.
      Parameters:
      dispose - shall also allocated resources of this server be disposed
    • stop

      static void stop(Server server, boolean dispose)
      Stops a given server instance.
      Parameters:
      server - the server instance, may be null
      dispose - shall also allocated resources of this server be disposed