| 2 | |
| 3 | The Job Manager logic is rather straightforward and can be easily adjusted for use in a specific cluster or server. After a job object is received by Job Manager, it is registered in the database and passed to the Worker nodes for execution. |
| 4 | |
| 5 | This code example sends all jobs to one Resident Worker on the cluster for execution. |
| 6 | For this the local GridGain node should excluded from the grid topology in the |
| 7 | [http://www.molgenis.org/svn/sandbox/molgenis_processing/3.3.galaxy/ScriptbasedComputePlatform/src/grid/GridStarter.java GridStarter] |
| 8 | |
| 9 | {{{ |
| 10 | GridBasicTopologySpi topSpi = new GridBasicTopologySpi(); |
| 11 | |
| 12 | // Exclude local node from topology. |
| 13 | topSpi.setLocalNode(false); |
| 14 | |
| 15 | // Configure your own topology SPI. |
| 16 | cfg.setTopologySpi(topSpi); |
| 17 | }}} |
| 18 | |