use of com.baidu.hugegraph.computer.core.network.TransportProvider in project hugegraph-computer by hugegraph.
the class TransportConnectionManager method initClientManager.
@Override
public synchronized void initClientManager(Config config, ClientHandler clientHandler) {
E.checkArgument(this.clientFactory == null, "The clientManager has already been initialized");
E.checkArgumentNotNull(clientHandler, "The clientHandler parameter can't be null");
TransportConf conf = TransportConf.wrapConfig(config);
TransportProvider provider = conf.transportProvider();
ClientFactory factory = provider.createClientFactory(conf);
factory.init();
this.clientFactory = factory;
this.clientHandler = clientHandler;
}
Aggregations