If you have a mechanism to connect the standard input, output, and error streams from the grid job, you can implement the following method.
public int submitJobAndWait(
String[] cmd,
InputStream cmdIn,
OutputStream cmdOut,
OutputStream cmdErr,
String[] inFiles,
String[] outFiles,
File localWorkingDir,
Log log
) throws RtGridException;
The arguments used by this method are the same as those for the previous method, with the addition of the following:
If you choose to implement this method, a suggested approach is to have the first method implemented as follows:
public int submitJobAndWait(String[] cmd, String[] inFiles,
String[] outFiles, File localWorkingDir, Log log) throws
RtGridException {
return submitJobAndWait(cmd, null, null, null, inFiles,
outFiles,
localWorkingDir, log);
}
| |||||||