GigaSpaces XAP 7.0 API

org.openspaces.remoting.scripting
Interface LocalScriptExecutor<T>

All Known Implementing Classes:
AbstractLocalScriptExecutor, GroovyLocalScriptExecutor, JRubyLocalScriptExecutor, Jsr223LocalScriptExecutor

public interface LocalScriptExecutor<T>

An SPI implementation for script executor ("on the server side") that can handle a specific script type (or labguage).

Author:
kimchy

Method Summary
 void close(T compiledScript)
          Closes the compiled script.
 T compile(Script script)
          Compiles the given sctipt.
 Object execute(Script script, T compiledScript, Map<String,Object> parameters)
          Executes the given compiled script.
 boolean isThreadSafe()
          Returns true if the same compiled script can be used by different threads (note, parameres or bindings usually make a scripting library not thread safe).
 

Method Detail

compile

T compile(Script script)
          throws ScriptCompilationException
Compiles the given sctipt.

Throws:
ScriptCompilationException

execute

Object execute(Script script,
               T compiledScript,
               Map<String,Object> parameters)
               throws ScriptExecutionException
Executes the given compiled script.

Throws:
ScriptExecutionException

close

void close(T compiledScript)
Closes the compiled script.


isThreadSafe

boolean isThreadSafe()
Returns true if the same compiled script can be used by different threads (note, parameres or bindings usually make a scripting library not thread safe).


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.