Search in sources :

Example 1 with GroovyEvaluator

use of com.twosigma.beakerx.groovy.evaluator.GroovyEvaluator in project beakerx by twosigma.

the class Groovy method main.

public static void main(final String[] args) throws InterruptedException, IOException {
    KernelRunner.run(() -> {
        String id = uuid();
        KernelSocketsFactoryImpl kernelSocketsFactory = new KernelSocketsFactoryImpl(new KernelConfigurationFile(args));
        GroovyEvaluator evaluator = new GroovyEvaluator(id, id, getEvaluatorParameters());
        return new Groovy(id, evaluator, kernelSocketsFactory);
    });
}
Also used : GroovyEvaluator(com.twosigma.beakerx.groovy.evaluator.GroovyEvaluator) KernelConfigurationFile(com.twosigma.beakerx.kernel.KernelConfigurationFile) KernelSocketsFactoryImpl(com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)

Example 2 with GroovyEvaluator

use of com.twosigma.beakerx.groovy.evaluator.GroovyEvaluator in project beakerx by twosigma.

the class GroovyCompleteHandlerTest method setUpClass.

@BeforeClass
public static void setUpClass() {
    GroovyEvaluator groovyEvaluator = new GroovyEvaluator("id", "sid", cellExecutor(), EvaluatorTest.getTestTempFolderFactory(), new EvaluatorParameters(new HashedMap()));
    groovyKernel = new GroovyKernelMock("sid", groovyEvaluator);
}
Also used : EvaluatorParameters(com.twosigma.beakerx.kernel.EvaluatorParameters) GroovyKernelMock(com.twosigma.beakerx.groovy.kernel.GroovyKernelMock) GroovyEvaluator(com.twosigma.beakerx.groovy.evaluator.GroovyEvaluator) HashedMap(org.apache.commons.collections.map.HashedMap) BeforeClass(org.junit.BeforeClass)

Aggregations

GroovyEvaluator (com.twosigma.beakerx.groovy.evaluator.GroovyEvaluator)2 GroovyKernelMock (com.twosigma.beakerx.groovy.kernel.GroovyKernelMock)1 EvaluatorParameters (com.twosigma.beakerx.kernel.EvaluatorParameters)1 KernelConfigurationFile (com.twosigma.beakerx.kernel.KernelConfigurationFile)1 KernelSocketsFactoryImpl (com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)1 HashedMap (org.apache.commons.collections.map.HashedMap)1 BeforeClass (org.junit.BeforeClass)1