Examples of GridTcpDiscoverySpi


Examples of org.gridgain.grid.spi.discovery.tcp.GridTcpDiscoverySpi

        cc.setTxSerializableEnabled(true);

        c.setCacheConfiguration(cc);

        GridTcpDiscoverySpi disco = new GridTcpDiscoverySpi();

        disco.setIpFinder(ipFinder);

        c.setDiscoverySpi(disco);

        return c;
    }
View Full Code Here

Examples of org.gridgain.grid.spi.discovery.tcp.GridTcpDiscoverySpi

    /** {@inheritDoc} */
    @Override protected GridConfiguration getConfiguration(String gridName) throws Exception {
        GridConfiguration cfg = super.getConfiguration(gridName);

        cfg.setDiscoverySpi(new GridTcpDiscoverySpi());
        cfg.setCacheConfiguration();
        cfg.setLocalHost("127.0.0.1");
        cfg.setRestEnabled(false);

        return cfg;
View Full Code Here

Examples of org.gridgain.grid.spi.discovery.tcp.GridTcpDiscoverySpi

     */
    public void testSettingNewTopologyHistorySize() throws Exception {
        try {
            final Grid g = startGrid();

            GridTcpDiscoverySpi spi = (GridTcpDiscoverySpi)g.configuration().getDiscoverySpi();

            assertEquals(DFLT_TOP_HISTORY_SIZE, spi.getTopHistorySize());

            spi.setTopHistorySize(DFLT_TOP_HISTORY_SIZE + 1);

            assertEquals(DFLT_TOP_HISTORY_SIZE + 1, spi.getTopHistorySize());

            spi.setTopHistorySize(1);

            assertEquals(DFLT_TOP_HISTORY_SIZE + 1, spi.getTopHistorySize());
        }
        finally {
            stopGrid();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.