GigaSpaces XAP 7.0 API

org.openspaces.remoting.scripting
Class JRubyLocalScriptExecutor

java.lang.Object
  extended by org.openspaces.remoting.scripting.AbstractLocalScriptExecutor<JRubyLocalScriptExecutor.JRubyCompiledScript>
      extended by 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
static class JRubyLocalScriptExecutor.JRubyCompiledScript
           
 
Constructor Summary
JRubyLocalScriptExecutor()
           
 
Method Summary
 void close(JRubyLocalScriptExecutor.JRubyCompiledScript compiledScript)
          Closes the compiled script.
 JRubyLocalScriptExecutor.JRubyCompiledScript doCompile(Script script)
           
 Object execute(Script script, JRubyLocalScriptExecutor.JRubyCompiledScript 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).
 
Methods inherited from class org.openspaces.remoting.scripting.AbstractLocalScriptExecutor
compile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRubyLocalScriptExecutor

public JRubyLocalScriptExecutor()
Method Detail

doCompile

public JRubyLocalScriptExecutor.JRubyCompiledScript doCompile(Script script)
                                                       throws ScriptCompilationException
Specified by:
doCompile in class AbstractLocalScriptExecutor<JRubyLocalScriptExecutor.JRubyCompiledScript>
Throws:
ScriptCompilationException

execute

public Object execute(Script script,
                      JRubyLocalScriptExecutor.JRubyCompiledScript compiledScript,
                      Map<String,Object> parameters)
               throws ScriptExecutionException
Description copied from interface: LocalScriptExecutor
Executes the given compiled script.

Throws:
ScriptExecutionException

close

public void close(JRubyLocalScriptExecutor.JRubyCompiledScript compiledScript)
Description copied from interface: LocalScriptExecutor
Closes the compiled script.


isThreadSafe

public boolean isThreadSafe()
Description copied from interface: LocalScriptExecutor
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.