GigaSpaces XAP 9.7.2 API

org.openspaces.remoting.scripting
Class GroovyLocalScriptExecutor

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

public class GroovyLocalScriptExecutor
extends AbstractLocalScriptExecutor<groovy.lang.Script>

Groovy local script executor.

Author:
kimchy

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

GroovyLocalScriptExecutor

public GroovyLocalScriptExecutor()
Method Detail

doCompile

protected groovy.lang.Script doCompile(Script script)
                                throws ScriptCompilationException
Specified by:
doCompile in class AbstractLocalScriptExecutor<groovy.lang.Script>
Throws:
ScriptCompilationException

execute

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

Throws:
ScriptExecutionException

close

public void close(groovy.lang.Script 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 9.7.2 API

Copyright © GigaSpaces.