提交 91f7d160 编写于 作者: A Alexander Alexandrov 提交者: StephanEwen

Minor changes in RemoteExecutor.java and LocalExecutor.java. Removed obsolete...

Minor changes in RemoteExecutor.java and LocalExecutor.java. Removed obsolete null-value check in the finally clauses in LocalExecutor.java. Returning proper exit code in RemoteExecutor.java.
上级 eeae6877
......@@ -151,11 +151,9 @@ public class LocalExecutor implements PlanExecutor {
exec.start();
return exec.executePlan(plan);
} finally {
if (exec != null) {
exec.stop();
}
}
}
/**
* Returns a JSON dump of the optimized plan.
......@@ -175,11 +173,9 @@ public class LocalExecutor implements PlanExecutor {
return gen.getOptimizerPlanAsJSON(op);
} finally {
if (exec != null) {
exec.stop();
}
}
}
/**
* Return unoptimized plan as JSON.
......
......@@ -11,6 +11,7 @@ import eu.stratosphere.pact.common.plan.Plan;
public class RemoteExecutor implements PlanExecutor {
private Client client;
private List<String> jarFiles;
public RemoteExecutor(String hostname, int port, List<String> jarFiles) {
......@@ -25,8 +26,7 @@ public class RemoteExecutor implements PlanExecutor {
@Override
public long executePlan(Plan plan) throws Exception {
PlanWithJars p = new PlanWithJars(plan, jarFiles);
client.run(p, true);
return 0;
PlanWithJars p = new PlanWithJars(plan, this.jarFiles);
return this.client.run(p, true);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册