arangoDB = new ArangoDB.Builder().host(ip).port(port).useProtocol(protocol).build(); } catch (Exception e) { logger.error("Failed to initialize ArangoDB", e);
/** * Adds a host in the arangodb builder * * @param host the host * @param port the port * @throws NullPointerException when host is null */ public void addHost(String host, int port) throws NullPointerException { requireNonNull(host, "host is required"); builder.host(host, port); builderAsync.host(host, port); }
@Override public void host(String host, int port) { arangoDB.host(host, port); }