| 46 | The java code of [http://www.molgenis.org/svn/sandbox/molgenis_processing/3.3.galaxy/ScriptbasedComputePlatform/src/remoteexecutor/RemoteScriptSubmitter.java RemoteScriptSubmitter] is executed by Worker on the cluster side. It saves the transferred script and additional files on the cluster and submits the script to the cluster scheduler. The submission results are returned back to |
| 47 | [http://www.molgenis.org/svn/sandbox/molgenis_processing/3.3.galaxy/ScriptbasedComputePlatform/src/scriptserver/PipelineThread.java PipelineThread] |
| 48 | |
| 49 | {{{ |
| 50 | saveData(script); |
| 51 | |
| 52 | //save additional files |
| 53 | if(script.isHasAdditionalFiles()) |
| 54 | for(int i = 0; i < script.getNumberFileToSaveRemotely(); i++) |
| 55 | { |
| 56 | saveData(script.getFileToSaveRemotely(i)); |
| 57 | } |
| 58 | |
| 59 | //sumbit script |
| 60 | SysCommandExecutor cmdExecutor = new SysCommandExecutor(); |
| 61 | |
| 62 | cmdExecutor.runCommand(SUB + script.getRemoteDir() + script.getRemotename()); |
| 63 | |
| 64 | String cmdError = cmdExecutor.getCommandError(); |
| 65 | String cmdOutput = cmdExecutor.getCommandOutput(); |
| 66 | returnData.setErrString(cmdError); |
| 67 | returnData.setOutString(cmdOutput); |
| 68 | |
| 69 | ... |
| 70 | return returnData; |
| 71 | }}} |
| 72 | |
| 73 | |