# Interface StServerType

All Superinterfaces:
  `AutoCloseable`

All Known Implementing Classes:
  `StServer`

public interface StServerType extends AutoCloseable
The type of servers.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `StConfiguration`
  `configuration()`
  `StDatabaseType`
  `database()`
  `boolean`
  `isClosed()`
  `void`
  `start()`
  Start the server instance.

- ## 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:
      - `start()`
      - `close()`

  - ### close

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