How to set an exit when the Ignite client cannot find the server

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.