Class ServerImpl

  • All Implemented Interfaces:
    Server

    public class ServerImpl
    extends Object
    implements Server
    Server to handle lifecycle of microprofile implementation.
    • Method Detail

      • cdiContainer

        public SeContainer cdiContainer()
        Description copied from interface: Server
        Get CDI container in use.
        Specified by:
        cdiContainer in interface Server
        Returns:
        CDI container instance (standard edition)
      • start

        public Server start()
        Description copied from interface: Server
        Start this server (can only be used once). This is a blocking call.
        Specified by:
        start in interface Server
        Returns:
        Server instance, started
      • stop

        public Server stop()
        Description copied from interface: Server
        Stop this server immediately (can only be used on a started server). This is a blocking call.
        Specified by:
        stop in interface Server
        Returns:
        Server instance, stopped
      • host

        public String host()
        Description copied from interface: Server
        Get the host this server listens on.
        Specified by:
        host in interface Server
        Returns:
        host name
      • port

        public int port()
        Description copied from interface: Server
        Get the port this server listens on or -1 if the server is not running.
        Specified by:
        port in interface Server
        Returns:
        port
      • port

        public int port​(String socketName)
        Description copied from interface: Server
        Get the port of the named socket.
        Specified by:
        port in interface Server
        Parameters:
        socketName - name of the socket
        Returns:
        port