Interface IdServerType

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
IdServer

public interface IdServerType extends AutoCloseable
A server instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    void
    setup(Optional<UUID> adminId, IdName adminName, IdEmail adminEmail, IdRealName adminRealName, String adminPassword)
    Do the work necessary to set up a server instance (such as initializing and/or upgrading the database) but do not actually start the instance.
    void
    Start the server instance.
  • Method Details

    • start

      void start() throws IdServerException
      Start the server instance.
      Throws:
      IdServerException - On errors
    • database

      IdDatabaseType database()
      Returns:
      The server's database instance
    • close

      void close() throws IdServerException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IdServerException
    • setup

      void setup(Optional<UUID> adminId, IdName adminName, IdEmail adminEmail, IdRealName adminRealName, String adminPassword) throws IdServerException
      Do the work necessary to set up a server instance (such as initializing and/or upgrading the database) but do not actually start the instance.
      Parameters:
      adminId - The admin ID, if a specific one is required
      adminName - The initial administrator to create
      adminEmail - The admin email
      adminRealName - The admin's real name
      adminPassword - The password for the initial administrator
      Throws:
      IdServerException - On errors