Interface Server


public interface Server

Basic interface for a Stardog server which allows a server to be started or shut down.

Since:
0.6.9
Version:
2.2
Author:
Michael Grove
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the address of this server.
    boolean
    Return whether or not the server is currently running
    Start this server so it can accept requests from clients.
    void
    Stop this server so it can no longer receive client requests.
  • Method Details

    • start

      Server start() throws ServerException
      Start this server so it can accept requests from clients. This has no effect if the server is already running.
      Returns:
      this server
      Throws:
      ServerException - if the server cannot be started
    • isRunning

      boolean isRunning()
      Return whether or not the server is currently running
      Returns:
      true if running, false otherwise
    • stop

      void stop()
      Stop this server so it can no longer receive client requests. This has no effect if the server is not running.
    • address

      SocketAddress address()
      Return the address of this server. This is where the server is listening, when running, or where it will run once started.
      Returns:
      the address of the server