Interface ConnectionManager

  • All Known Implementing Classes:
    TransportConnectionManager

    public interface ConnectionManager
    This is used for unified manage server and client connection.
    • Method Detail

      • startServer

        int startServer​(org.apache.hugegraph.computer.core.config.Config config,
                        MessageHandler serverHandler)
        Start the server, return the port listened. This method is called only once.
      • getServer

        TransportServer getServer()
        Return the only one listened server.
      • shutdownServer

        void shutdownServer()
        Shutdown the server.
      • initClientManager

        void initClientManager​(org.apache.hugegraph.computer.core.config.Config config,
                               ClientHandler clientHandler)
        Initialize the client connection manager. This method is called only once.
      • shutdownClients

        void shutdownClients()
        Shutdown the client connection manager.
      • shutdown

        void shutdown()
        Shutdown the client connection manager and server.