Hi all,
TcpDiscoveryVmIpFinder vmIpFinder = new TcpDiscoveryVmIpFinder();
List<String> addresses = new ArrayList<>();
addresses.add("localhost");
vmIpFinder.setAddresses(addresses);
TcpDiscoverySpi discoverySpi = new TcpDiscoverySpi();
discoverySpi.setIpFinder(vmIpFinder);
IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setDiscoverySpi(discoverySpi);
cfg.setClientMode(true);
cfg.setGridName(UUID.randomUUID().toString());
Ignite ignite = Ignition.start(cfg);
When connect to an ignite server node as per code above, if failed to connect,
the program will just hang there and ignite will try to connect again every 5
minutes. Is it possible to let ignite fail immediately and return to my code,
so I can handle the failure myself?
BRs,
David