提交 4b8c3e89 编写于 作者: M Markus Holzemer 提交者: StephanEwen

Set the disableLocalExecution() in ExecutionEnvironment to protected

上级 5c8641e8
......@@ -68,7 +68,7 @@ public class Client {
this.compiler = new PactCompiler(new DataStatistics(), new DefaultCostEstimator(), jobManagerAddress);
// Disable Local Execution when using a Client
ExecutionEnvironment.disableLocalExecution();
ContextEnvironment.disableLocalExecution();
}
/**
......@@ -95,7 +95,7 @@ public class Client {
this.compiler = new PactCompiler(new DataStatistics(), new DefaultCostEstimator(), jobManagerAddress);
// Disable Local Execution when using a Client
ExecutionEnvironment.disableLocalExecution();
ContextEnvironment.disableLocalExecution();
}
public void setPrintStatusDuringExecution(boolean print) {
......
......@@ -65,4 +65,8 @@ public class ContextEnvironment extends ExecutionEnvironment {
public void setAsContext() {
initializeContextEnvironment(this);
}
protected static void disableLocalExecution() {
ExecutionEnvironment.disableLocalExecution();
}
}
......@@ -117,7 +117,7 @@ public abstract class ExecutionEnvironment {
return allowLocalExecution;
}
public static void disableLocalExecution() {
protected static void disableLocalExecution() {
allowLocalExecution = false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册