| 1 | |
|
| 2 | |
|
| 3 | |
package org.galagosearch.tupleflow.execution; |
| 4 | |
|
| 5 | |
import java.util.ArrayList; |
| 6 | |
import java.util.concurrent.Future; |
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
|
| 18 | 0 | public class LocalRemoteStageExecutor extends RemoteStageExecutor { |
| 19 | |
public StageExecutionStatus submit(String stageName, ArrayList<String> jobPaths, String temporary) { |
| 20 | 0 | StageExecutionStatus status = null; |
| 21 | |
|
| 22 | 0 | for (String jobPath : jobPaths) { |
| 23 | 0 | status = new LocalStageExecutor().execute(jobPath); |
| 24 | |
|
| 25 | 0 | if (status.getExceptions().size() > 0) { |
| 26 | 0 | return status; |
| 27 | |
} |
| 28 | |
} |
| 29 | |
|
| 30 | 0 | return status; |
| 31 | |
} |
| 32 | |
|
| 33 | |
public void shutdown() { |
| 34 | 0 | } |
| 35 | |
} |