GigaSpaces XAP 7.0 API

org.openspaces.remoting.scripting
Class Jsr223LocalScriptExecutor

java.lang.Object
  extended by org.openspaces.remoting.scripting.AbstractLocalScriptExecutor<Object>
      extended by org.openspaces.remoting.scripting.Jsr223LocalScriptExecutor
All Implemented Interfaces:
LocalScriptExecutor<Object>

public class Jsr223LocalScriptExecutor
extends AbstractLocalScriptExecutor<Object>

Java 6 (JSR 223) script executor.

Author:
kimchy

Constructor Summary
Jsr223LocalScriptExecutor()
           
 
Method Summary
 void close(Object compiledScript)
          Closes the compiled script.
 Object doCompile(Script script)
           
 Object execute(Script script, Object 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

Jsr223LocalScriptExecutor

public Jsr223LocalScriptExecutor()
Method Detail

doCompile

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

execute

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

Throws:
ScriptExecutionException

close

public void close(Object 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.