GigaSpaces XAP 9.7.2 API

org.openspaces.remoting.scripting
Class LazyLoadingRemoteInvocationAspect

java.lang.Object
  extended by org.openspaces.remoting.scripting.LazyLoadingRemoteInvocationAspect
All Implemented Interfaces:
RemoteInvocationAspect

public class LazyLoadingRemoteInvocationAspect
extends Object
implements RemoteInvocationAspect

The lazy loading remote invocation aspect wraps the actual remote invocation and adds support for LazyLoadingScripts.

If the scipt being executed is a lazy loading script, and it is cacheable, the actual script content will not be sent to the remote service. If the script is already complied and cached, there is no need to get the actual script content, and it will be executed. If the script if not loaded (i.e. not compiled and cached), the scripting executor will throw a ScriptNotLoadedException exception, which then the script will be loaded and executed again.

Author:
kimchy

Constructor Summary
LazyLoadingRemoteInvocationAspect()
           
 
Method Summary
 Object invoke(MethodInvocation methodInvocation, RemotingInvoker remotingInvoker)
          If the scipt being executed is a lazy loading script, and it is cacheable, the actual script content will not be sent to the remote service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyLoadingRemoteInvocationAspect

public LazyLoadingRemoteInvocationAspect()
Method Detail

invoke

public Object invoke(MethodInvocation methodInvocation,
                     RemotingInvoker remotingInvoker)
              throws Throwable
If the scipt being executed is a lazy loading script, and it is cacheable, the actual script content will not be sent to the remote service. If the script is already complied and cached, there is no need to get the actual script content, and it will be executed. If the script if not loaded (i.e. not compiled and cached), the scripting executor will throw a ScriptNotLoadedException exception, which then the script will be loaded and executed again.

Specified by:
invoke in interface RemoteInvocationAspect
Throws:
Throwable

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.