GigaSpaces XAP 9.7.2 API

org.openspaces.remoting.scripting
Interface Script

All Superinterfaces:
BroadcastIndicator
All Known Subinterfaces:
LazyLoadingScript, TypedScript
All Known Implementing Classes:
ResourceLazyLoadingScript, StaticResourceScript, StaticScript

public interface Script
extends BroadcastIndicator

A script that will be excuted.

Author:
kimchy

Method Summary
 Object[] getMetaArguments()
          Returns a set of meta arguments that are used for remote invocation.
 String getName()
          The name of the script.
 Map<String,Object> getParameters()
          One or more parameters that will be passes to the script.
 Object getRouting()
          The routing index for the script.
 String getScriptAsString()
          The script source as a string.
 String getType()
          The type of the script (or actually, language).
 boolean shouldCache()
          Should this script be cached or not.
 
Methods inherited from interface org.openspaces.remoting.BroadcastIndicator
getReducer, shouldBroadcast
 

Method Detail

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, groovy or ruby.


getScriptAsString

String getScriptAsString()
The script source as a string.


getParameters

Map<String,Object> getParameters()
One or more parameters that will be passes to the script.


getRouting

Object getRouting()
The routing index for the script. Can be null. Defaults to a random routing.


shouldCache

boolean shouldCache()
Should this script be cached or not. Defaults to true.


getMetaArguments

Object[] getMetaArguments()
Returns a set of meta arguments that are used for remote invocation.

See Also:
SpaceRemotingInvocation.getMetaArguments()

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.