Implement new method `scriptRemoved(CompiledScript)` in `ScriptEngineService`

This [PR](https://github.com/elasticsearch/elasticsearch/pull/8062) broke ScriptEngineService by adding a new method `scriptRemoved(CompiledScript)`.

Closes #23.
This commit is contained in:
David Pilato 2014-10-15 18:21:57 +02:00
parent 336729021a
commit 8afd16885a
1 changed files with 6 additions and 4 deletions

View File

@ -25,10 +25,7 @@ import org.elasticsearch.common.Nullable;
import org.elasticsearch.common.component.AbstractComponent;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.script.ExecutableScript;
import org.elasticsearch.script.ScoreAccessor;
import org.elasticsearch.script.ScriptEngineService;
import org.elasticsearch.script.SearchScript;
import org.elasticsearch.script.*;
import org.elasticsearch.search.lookup.SearchLookup;
import org.python.core.Py;
import org.python.core.PyCode;
@ -104,6 +101,11 @@ public class PythonScriptEngineService extends AbstractComponent implements Scri
interp.cleanup();
}
@Override
public void scriptRemoved(@Nullable CompiledScript compiledScript) {
// Nothing to do
}
public class PythonExecutableScript implements ExecutableScript {
private final PyCode code;