Removed static initialization code for all mock interpreters

This commit is contained in:
Jongyoul Lee 2017-01-23 15:33:37 +09:00
parent c505a78d5d
commit eb2c828f44
5 changed files with 0 additions and 44 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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);
}

View file

@ -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);

View file

@ -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);