mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Removed static initialization code for all mock interpreters
This commit is contained in:
parent
c505a78d5d
commit
eb2c828f44
5 changed files with 0 additions and 44 deletions
|
|
@ -31,15 +31,6 @@ import org.apache.zeppelin.scheduler.Scheduler;
|
|||
import org.apache.zeppelin.scheduler.SchedulerFactory;
|
||||
|
||||
public class MockInterpreterA extends Interpreter {
|
||||
static {
|
||||
Interpreter.register(
|
||||
"interpreterA",
|
||||
"group1",
|
||||
MockInterpreterA.class.getName(),
|
||||
new InterpreterPropertyBuilder()
|
||||
.add("p1", "v1", "property1").build());
|
||||
|
||||
}
|
||||
|
||||
private String lastSt;
|
||||
|
||||
|
|
|
|||
|
|
@ -31,15 +31,6 @@ import org.apache.zeppelin.interpreter.InterpreterResult.Code;
|
|||
import org.apache.zeppelin.interpreter.thrift.InterpreterCompletion;
|
||||
|
||||
public class MockInterpreterAngular extends Interpreter {
|
||||
static {
|
||||
Interpreter.register(
|
||||
"angularTest",
|
||||
"angular",
|
||||
MockInterpreterA.class.getName(),
|
||||
new InterpreterPropertyBuilder()
|
||||
.add("p1", "v1", "property1").build());
|
||||
|
||||
}
|
||||
|
||||
AtomicInteger numWatch = new AtomicInteger(0);
|
||||
|
||||
|
|
|
|||
|
|
@ -32,15 +32,7 @@ import org.apache.zeppelin.interpreter.thrift.InterpreterCompletion;
|
|||
import org.apache.zeppelin.scheduler.Scheduler;
|
||||
|
||||
public class MockInterpreterB extends Interpreter {
|
||||
static {
|
||||
Interpreter.register(
|
||||
"interpreterB",
|
||||
"group1",
|
||||
MockInterpreterA.class.getName(),
|
||||
new InterpreterPropertyBuilder()
|
||||
.add("p1", "v1", "property1").build());
|
||||
|
||||
}
|
||||
public MockInterpreterB(Properties property) {
|
||||
super(property);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,15 +26,6 @@ import java.util.Properties;
|
|||
|
||||
|
||||
public class MockInterpreterEnv extends Interpreter {
|
||||
static {
|
||||
Interpreter.register(
|
||||
"interpreterA",
|
||||
"group1",
|
||||
MockInterpreterA.class.getName(),
|
||||
new InterpreterPropertyBuilder().build());
|
||||
|
||||
}
|
||||
|
||||
|
||||
public MockInterpreterEnv(Properties property) {
|
||||
super(property);
|
||||
|
|
|
|||
|
|
@ -34,15 +34,6 @@ import org.apache.zeppelin.resource.Resource;
|
|||
import org.apache.zeppelin.resource.ResourcePool;
|
||||
|
||||
public class MockInterpreterResourcePool extends Interpreter {
|
||||
static {
|
||||
Interpreter.register(
|
||||
"resourcePoolTest",
|
||||
"resourcePool",
|
||||
MockInterpreterA.class.getName(),
|
||||
new InterpreterPropertyBuilder()
|
||||
.add("p1", "v1", "property1").build());
|
||||
|
||||
}
|
||||
|
||||
AtomicInteger numWatch = new AtomicInteger(0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue