GridGain™ 2.0.3
Java API Specification

org.gridgain.grid.gridify
Interface GridifyInterceptor


public interface GridifyInterceptor

This interface defines an interceptor call for Gridify annotation. Interceptor gets called in advise code to decide whether or not to grid-enable this method.

Interceptors can be used to provide fine-grain control on Gridify annotation behavior. For example, an interceptor can be implemented to grid enable the method only if CPU on the local node has been above 80% of utilization for the last 5 minutes.



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

Author:   2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.0.3

 

Method Summary
 boolean isGridify(Gridify gridify, GridifyArgument arg)
          This method is called before actual grid-enabling happens.
 

Method Detail

isGridify

boolean isGridify(Gridify gridify,
                  GridifyArgument arg)
                  throws GridException
This method is called before actual grid-enabling happens.

Throws:
GridException - Thrown in case of any errors.
Parameters:
gridify - Gridify annotation instance that caused the grid-enabling.
arg - Gridify argument.
Returns:
True if method should be grid-enabled, false otherwise.

GridGain™ 2.0.3
Java API Specification

GridGain™ - Grid Computing Made Simple, ver. 2.0.3.20052008
2005-2008 Copyright © GridGain Systems. All Rights Reserved.