Click on Javadoc link to open Javadoc documentation.
Package
org.gridgain.grid.spi.deployment ![]()
Built-in Implementations
Gridgain comes with two deployment SPI's supported out of the box
Description
Grid deployment SPI is in charge of deploying/undeploying tasks from different sources.
Grid task can be deployed directly by calling GridDeploymentSpi.deployTask(GridDeploymentTask) ![]()
Whenever task is locally deployed through public API via Grid.deployTask(Class<? extends GridTask<?>>) ![]()
![]()
![]()
![]()
When method GridDeploymentSpi.findTask(String) ![]()
![]()
![]()
Peer Class Loading
If peer class loading is enabled (which is default behavior, see GridConfiguration.isPeerClassLoadingEnabled() ![]()
| Local vs. Peer Deployment Note that peer class loading comes into effect only if a task was not locally deployed, otherwise, preference will always be given to a locally deployed task or task class from the local class path. |
Configuration
GridDeploymentSpi is provided in Grid Configuration passed into GridFactory ![]()
GridConfigurationAdapter cfg = new GridConfigurationAdapter(); GridUriDeploymentSpi deploySpi = new GridUriDeploymentSpi(); // Configure your own deployment folder for URI deployment. deploySpi.setUriList(Collections.singletonList("file:///my/deployment/folder"); cfg.setDeploymentSpi(deploySpi); GridFactory.start(cfg);
Note that GridConfiguration ![]()

For more information about using Spring framework for configuration click here.
Default Implementation
GridLocalDeploymentSpi is used by default, if no deployment SPI was explicitely provided in grid configuration.


