Interface Script
- All Superinterfaces:
BroadcastIndicator
- All Known Subinterfaces:
LazyLoadingScript,TypedScript
- All Known Implementing Classes:
ResourceLazyLoadingScript,StaticResourceScript,StaticScript
A script that will be excuted.
- Author:
- kimchy
-
Method Summary
Modifier and TypeMethodDescriptionObject[]Returns a set of meta arguments that are used for remote invocation.getName()The name of the script.One or more parameters that will be passes to the script.The routing index for the script.The script source as a string.getType()The type of the script (or actually, language).booleanShould this script be cached or not.Methods inherited from interface org.openspaces.remoting.BroadcastIndicator
getReducer, shouldBroadcast
-
Method Details
-
getName
String getName()The name of the script. Should uniquely identify scripts. -
getType
String getType()The type of the script (or actually, language). For example,groovyorruby. -
getScriptAsString
String getScriptAsString()The script source as a string. -
getParameters
One or more parameters that will be passes to the script. -
getRouting
Object getRouting()The routing index for the script. Can benull. Defaults to a random routing. -
shouldCache
boolean shouldCache()Should this script be cached or not. Defaults totrue. -
getMetaArguments
Object[] getMetaArguments()Returns a set of meta arguments that are used for remote invocation.
-