org.openspaces.remoting.scripting
Class GroovyLocalScriptExecutor
java.lang.Object
  
org.openspaces.remoting.scripting.AbstractLocalScriptExecutor<groovy.lang.Script>
      
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
 
 
| 
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 java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
GroovyLocalScriptExecutor
public GroovyLocalScriptExecutor()
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).
 
 
Copyright © GigaSpaces.