use of com.baidu.hugegraph.computer.core.network.MessageHandler in project hugegraph-computer by hugegraph.
the class ConnectionManagerTest method setup.
@Before
public void setup() {
Config config = UnitTestBase.updateWithRequiredOptions(ComputerOptions.TRANSPORT_SERVER_HOST, "127.0.0.1", ComputerOptions.TRANSPORT_IO_MODE, "NIO");
MessageHandler serverHandler = new MockMessageHandler();
ClientHandler clientHandler = new MockClientHandler();
connectionManager = new TransportConnectionManager();
port = connectionManager.startServer(config, serverHandler);
connectionManager.initClientManager(config, clientHandler);
}
Aggregations