Giriş
Şu satırı dahil ederiz
import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder;setAddresses metodu
Örnek
Şöyle yaparız
TcpDiscoverySpi localDiscovery() { TcpDiscoverySpi discoverySpi = new TcpDiscoverySpi(); discoverySpi.setLocalPort(48500); TcpDiscoveryVmIpFinder firstIpFinder = new TcpDiscoveryVmIpFinder(); firstIpFinder.setAddresses(Collections.singletonList("127.0.0.1:48500..48520")); discoverySpi.setIpFinder(firstIpFinder); return discoverySpi; }
Hiç yorum yok:
Yorum Gönder