final int CLUSTER_SIZE = 3; try (LocalIgniteCluster cluster = LocalIgniteCluster.start(CLUSTER_SIZE); IgniteClient client = Ignition.startClient(new ClientConfiguration() .setAddresses(cluster.clientAddresses().toArray(new String[CLUSTER_SIZE]))
try (LocalIgniteCluster ignored = LocalIgniteCluster.start(2); IgniteClient client = Ignition.startClient(getClientConfiguration()) ) {