Ignite service-side support is required to start the client:
Ignition.setclientmode (true); Ignition.start ("Ignite.xml");
Here's the problem, when the client is started, the client discovers that the server is not found and will default to re-scan the connection every two seconds, and then retry for about 10 minutes. But we hope he can't find the server. Immediately exit without executing the program, view source discovery, its scanning and jointimeout parameters, When the client starts to judge the parameters, if the value is empty, the default is to re-connect, but the value of the time will be the value of the size of the scan, in order to immediately exit, I set Jointimeout to 100, in milliseconds. When you start, you can exit immediately, and of course you want to set up a full time.
class= "Org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi" > <property name= "Jointimeout" value= > </property> <property name= "Ipfinder" > class= " Org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder "> <property name=" addresses " > <list> <value>127.0.0.1:47500..47509</value> </list> </ property> </bean> </property> </bean>
How to set an exit when the Ignite client cannot find the server