Interface TransportServer

  • All Known Implementing Classes:
    NettyTransportServer

    public interface TransportServer
    This is used for worker that receives data.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.net.InetSocketAddress bindAddress()
      Get the bind InetSocketAddress
      boolean bound()
      To check whether the server is bound to use.
      java.lang.String ip()
      Get the bind IP
      int listen​(org.apache.hugegraph.computer.core.config.Config config, MessageHandler serverHandler)
      Startup server, return the port listened.
      int port()
      Get the bind port
      void shutdown()
      Stop the server.
    • Method Detail

      • listen

        int listen​(org.apache.hugegraph.computer.core.config.Config config,
                   MessageHandler serverHandler)
        Startup server, return the port listened.
      • shutdown

        void shutdown()
        Stop the server.
      • bound

        boolean bound()
        To check whether the server is bound to use.
        Returns:
        true if server is bound.
      • bindAddress

        java.net.InetSocketAddress bindAddress()
        Get the bind InetSocketAddress
      • ip

        java.lang.String ip()
        Get the bind IP
      • port

        int port()
        Get the bind port