Changes between Version 6 and Version 7 of ComputeStartExample1


Ignore:
Timestamp:
2010-11-05T13:18:26+01:00 (14 years ago)
Author:
george
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ComputeStartExample1

    v6 v7  
    4444}}}
    4545
     46The 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{{{
     50saveData(script);
     51
     52//save additional files
     53if(script.isHasAdditionalFiles())
     54        for(int i = 0; i < script.getNumberFileToSaveRemotely(); i++)
     55        {
     56        saveData(script.getFileToSaveRemotely(i));
     57    }
     58   
     59//sumbit script
     60SysCommandExecutor cmdExecutor = new SysCommandExecutor();
     61
     62cmdExecutor.runCommand(SUB + script.getRemoteDir() + script.getRemotename());
     63
     64String cmdError = cmdExecutor.getCommandError();
     65String cmdOutput = cmdExecutor.getCommandOutput();
     66returnData.setErrString(cmdError);
     67returnData.setOutString(cmdOutput);
     68
     69...
     70return returnData;
     71}}}
     72
     73