Click on Javadoc link to open Javadoc documentation.
Package
org.gridgain.grid.spi.topology ![]()
Built-in Implementations
GridGain comes with following implementations for topology SPI:
Description
GridTopologySpi ![]()
![]()
Implementations can employ various strategies, e.g., some may be time based when certain nodes are available only at certain time or dates, or topology can be based on average load of the nodes, or it can be based on specifics of the task obtained from the task session and ability to match them to grid nodes.
Note that in simple environments the topology is often the same as entire grid (sometimes minus the local node). More complex topology management is required only when available topology changes per task or per some other condition.
Configuration
GridTopologySpi ![]()
![]()
GridConfigurationAdapter cfg = new GridConfigurationAdapter(); GridBasicTopologySpi topSpi = new GridBasicTopologySpi(); // Exclude local node from topology. topSpi.setLocalNode(false); // Configure your own topology SPI. cfg.setTopologySpi(topSpi); GridFactory.start(cfg);
Note that GridConfiguration ![]()

For more information about using Spring framework for configuration click here.
Default Implementation
If no topology SPI is provided in configuration by default GridBasicTopologySpi is used.


