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>
Groovy local script executor.
- Author:
- kimchy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(groovy.lang.Script compiledScript) Closes the compiled script.protected groovy.lang.ScriptExecutes 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
-
GroovyLocalScriptExecutor
public GroovyLocalScriptExecutor()
-
-
Method Details
-
doCompile
- Specified by:
doCompilein classAbstractLocalScriptExecutor<groovy.lang.Script>- Throws:
ScriptCompilationException
-
execute
public Object execute(Script script, groovy.lang.Script compiledScript, Map<String, Object> parameters) throws ScriptExecutionExceptionDescription copied from interface:LocalScriptExecutorExecutes the given compiled script.- Throws:
ScriptExecutionException
-
close
public void close(groovy.lang.Script compiledScript) 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).
-