Interface StServerType

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
StServer

public interface StServerType extends AutoCloseable
The type of servers.
  • Method Details

    • start

      void start() throws StException
      Start the server instance. Can be called multiple times redundantly, and can be called before or after #close() has been called.
      Throws:
      StException - On errors
    • database

      StDatabaseType database()
      Returns:
      The server's database instance
    • configuration

      StConfiguration configuration()
      Returns:
      The server's associated configuration
    • isClosed

      boolean isClosed()
      Returns:
      true if the server is closed
      See Also:
    • close

      void close() throws StException
      Specified by:
      close in interface AutoCloseable
      Throws:
      StException