Interface IPortController


public interface IPortController
Interface implemented by a Jetty ServerConnector for a port in order to control it from the server administration.
Author:
Christopher Mindus
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The state enumeration of the connector.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    close(boolean doPerform)
    Closes the connector.
    void
    Disposes of the port when it has been removed from the server configuration.
    The port configuration.
    Returns the state of the connector.
    open(boolean doPerform)
    Opens the connector.
    void
    Restarts the port after server certificate KeyStore update.
    start(boolean doPerform)
    Starts the port.
    stop(boolean doPerform)
    Stops the port.
  • Method Details Link icon

    • getConfiguration Link icon

      PortConfig getConfiguration()
      The port configuration.
      Returns:
      The port config instance.
    • getState Link icon

      Returns the state of the connector.
    • start Link icon

      String start(boolean doPerform)
      Starts the port.
      Parameters:
      doPerform - Flag indicating action should be performed (true) or just testing (false).
      Returns:
      null for success, otherwise an error the admin-human readable error.
    • open Link icon

      String open(boolean doPerform)
      Opens the connector.
      Parameters:
      doPerform - Flag indicating action should be performed (true) or just testing (false).
      Returns:
      null for success, otherwise an error the admin-human readable error.
    • close Link icon

      String close(boolean doPerform)
      Closes the connector.
      Parameters:
      doPerform - Flag indicating action should be performed (true) or just testing (false).
      Returns:
      null for success, otherwise an error the admin-human readable error.
    • restart Link icon

      void restart()
      Restarts the port after server certificate KeyStore update.
    • stop Link icon

      String stop(boolean doPerform)
      Stops the port.
      Parameters:
      doPerform - Flag indicating action should be performed (true) or just testing (false).
      Returns:
      null for success, otherwise an error the admin-human readable error.
    • dispose Link icon

      void dispose()
      Disposes of the port when it has been removed from the server configuration.