Click on Javadoc link to open Javadoc documentation.
Package
org.gridgain.grid.spi.toplogy.basic Javadoc![]()
Description
GridBasicTopologySpi ![]()
Configuration
The following configuration parameters can be used to configure GridBasicTopologySpi ![]()
| Setter Method | Description | Optional | Default |
|---|---|---|---|
| setLocalNode(boolean) |
Controls whether topology should include local node or not. | Yes | true |
| setRemoteNodes(boolean) |
Controls whether topology should include remote nodes or not. | Yes | true |
Examples
As any GridGain SPI, GridBasicTopologySpi ![]()
![]()
GridBasicTopologySpi topSpi = new GridBasicTopologySpi(); // Exclude local node from topology. topSpi.setLocalNode(false); GridConfigurationAdapter cfg = new GridConfigurationAdapter(); // Override default topology SPI. cfg.setTopologySpi(topSpi); // Start grid. GridFactory.start(cfg);
or from Spring configuration file
<bean id="grid.custom.cfg" class="org.gridgain.grid.GridConfigurationAdapter" singleton="true"> ... <property name="topologySpi"> <bean class="org.gridgain.grid.spi.topology.basic.GridBasicTopologySpi"> <property name="localNode" value="false"/> </bean> </property> ... </bean>

For more information about using Spring framework for configuration click here.
