GigaSpaces XAP 7.0 API

org.openspaces.remoting.scripting
Class ExecutorScriptingProxyConfigurer<T>

java.lang.Object
  extended by org.openspaces.remoting.scripting.ExecutorScriptingProxyConfigurer<T>

public class ExecutorScriptingProxyConfigurer<T>
extends Object

A simple programmatic configurer creating a remote executor scripting proxy.

Usage example:

 IJSpace space = new UrlSpaceConfigurer("jini://*/*/mySpace")
                        .space();
 GigaSpace gigaSpace = new GigaSpaceConfigurer(space).gigaSpace();
 ScriptingExecutor executor = new ExecutorScriptingProxyConfigurer(gigaSpace)
                                       .timeout(15000)
                                       .scriptingExecutor();
 Integer result = executor.execute(new StaticScript()
                  .type("groovy")
                  .name("myScript")
                  .script("return 1")));
 

Author:
Uri Cohen

Constructor Summary
ExecutorScriptingProxyConfigurer(GigaSpace gigaSpace)
          Creates a new ExecutorScriptingProxyConfigurer on top of the given space
 
Method Summary
 ScriptingExecutor<T> scriptingExecutor()
          Create a new executor ScriptingExecutor proxy
 ExecutorScriptingProxyConfigurer<T> timeout(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutorScriptingProxyConfigurer

public ExecutorScriptingProxyConfigurer(GigaSpace gigaSpace)
Creates a new ExecutorScriptingProxyConfigurer on top of the given space

Method Detail

timeout

public ExecutorScriptingProxyConfigurer<T> timeout(long timeout)
See Also:
ExecutorSpaceRemotingProxyFactoryBean.setTimeout(long)

scriptingExecutor

public ScriptingExecutor<T> scriptingExecutor()
Create a new executor ScriptingExecutor proxy


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.