Class JRubyLocalScriptExecutor
java.lang.Object
org.openspaces.remoting.scripting.AbstractLocalScriptExecutor<JRubyLocalScriptExecutor.JRubyCompiledScript>
org.openspaces.remoting.scripting.JRubyLocalScriptExecutor
- All Implemented Interfaces:
LocalScriptExecutor<JRubyLocalScriptExecutor.JRubyCompiledScript>
public class JRubyLocalScriptExecutor
extends AbstractLocalScriptExecutor<JRubyLocalScriptExecutor.JRubyCompiledScript>
JRuby local script executor.
- Author:
- kimchy
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(JRubyLocalScriptExecutor.JRubyCompiledScript compiledScript) Closes the compiled script.execute(Script script, JRubyLocalScriptExecutor.JRubyCompiledScript compiledScript, Map<String, Object> parameters) Executes the given compiled script.booleanReturnstrueif the same compiled script can be used by different threads (note, parameres or bindings usually make a scripting library not thread safe).Methods inherited from class org.openspaces.remoting.scripting.AbstractLocalScriptExecutor
compile
-
Constructor Details
-
JRubyLocalScriptExecutor
public JRubyLocalScriptExecutor()
-
-
Method Details
-
doCompile
public JRubyLocalScriptExecutor.JRubyCompiledScript doCompile(Script script) throws ScriptCompilationException - Specified by:
doCompilein classAbstractLocalScriptExecutor<JRubyLocalScriptExecutor.JRubyCompiledScript>- Throws:
ScriptCompilationException
-
execute
public Object execute(Script script, JRubyLocalScriptExecutor.JRubyCompiledScript compiledScript, Map<String, Object> parameters) throws ScriptExecutionExceptionDescription copied from interface:LocalScriptExecutorExecutes the given compiled script.- Throws:
ScriptExecutionException
-
close
Description copied from interface:LocalScriptExecutorCloses the compiled script. -
isThreadSafe
public boolean isThreadSafe()Description copied from interface:LocalScriptExecutorReturnstrueif the same compiled script can be used by different threads (note, parameres or bindings usually make a scripting library not thread safe).
-