GridGain™ 2.1.0
Java API Specification

org.gridgain.grid.spi.tracing
Interface GridTracingSpi

All Superinterfaces:
GridSpi
All Known Implementing Classes:
GridJxinsightTracingSpi

@Apache20LicenseCompatible
public interface GridTracingSpi
extends GridSpi

SPI provides pluggable tracing facility for GridGain. System runtime intercepts main implementation methods and notifies this SPI. Implementation of this SPI should provide any necessary processing of interception callbacks like collecting statistics, searching for patterns, passing further to external monitoring console, etc.

GridGain comes with one default implementation:





See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

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

 

Method Summary
 void afterCall(Class<?> cls, String methodName, Object[] args, Object res, Throwable e)
          This callback is called right after target method interception.
 void beforeCall(Class<?> cls, String methodName, Object[] args)
          This callback is called right before target method interception.
 
Methods inherited from interface org.gridgain.grid.spi.GridSpi
getName, getNodeAttributes, onContextDestroyed, onContextInitialized, spiStart, spiStop
 

Method Detail

beforeCall

void beforeCall(Class<?> cls,
                String methodName,
                Object[] args)
This callback is called right before target method interception.

Parameters:
cls - Callee class.
methodName - Callee method name.
args - Callee method parameters.

afterCall

void afterCall(Class<?> cls,
               String methodName,
               Object[] args,
               @Nullable
               Object res,
               Throwable e)
This callback is called right after target method interception.

Parameters:
cls - Callee class.
methodName - Callee method name.
args - Callee method parameters.
res - Call result. Might be null if call returned null or if exception happened.
e - Exception thrown by given method call, if any.

GridGain™ 2.1.0
Java API Specification

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