GridGain™ 2.0.3
Java API Specification

org.gridgain.grid.spi.tracing.jxinsight
Class GridJxinsightTracingSpi

java.lang.Object
  extended by org.gridgain.grid.spi.GridSpiAdapter
      extended by org.gridgain.grid.spi.tracing.jxinsight.GridJxinsightTracingSpi
All Implemented Interfaces:
GridSpi, GridSpiManagementMBean, GridTracingSpi, GridJxinsightTracingSpiMBean

@GridSpiInfo(author="GridGain Systems",
             url="www.gridgain.org",
             email="support@gridgain.com",
             version="x.x")
@GridSpiMultipleInstancesSupport(value=false)
public class GridJxinsightTracingSpi
extends GridSpiAdapter
implements GridTracingSpi, GridJxinsightTracingSpiMBean

Tracing SPI implementation that receives method call notifications from local grid and informs JXInsight Tracer.

Configuration

Mandatory

This SPI has no mandatory configuration parameters.

Optional

This SPI has no optional configuration parameters. Note: JXInsight is not shipped with GridGain. If you don't have JXInsight, you need to download it separately. See http://www.jinspired.com/products/jxinsight for more information. Once installed, JXInsight should be available on the classpath for GridGain. If you use [GRIDGAIN_HOME]/bin/gridgain.{sh|bat} script to start a grid node you can simply add JXInsight JARs to [GRIDGAIN_HOME]/bin/setenv.{sh|bat} scripts that's used to set up class path for the main scripts.



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

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

 

Constructor Summary
GridJxinsightTracingSpi()
           
 
Method Summary
 void afterCall(Class<?> cls, String methodName, Object[] args, Object res, Throwable exc)
          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.
 void spiStart(String gridName)
          This method is called to start SPI.
 void spiStop()
          This method is called to stop SPI.
 String toString()
          
 
Methods inherited from class org.gridgain.grid.spi.GridSpiAdapter
assertParameter, checkConfigurationConsistency, configInfo, getAuthor, getGridGainHome, getLocalNodeId, getNodeAttributes, getSpiContext, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormatted, getVendorEmail, getVendorUrl, getVersion, onContextDestroyed, onContextInitialized, registerMBean, setSpiContext, startInfo, startStopwatch, stopInfo, unregisterMBean, warnSpi, warnSpiParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.gridgain.grid.spi.GridSpi
getNodeAttributes, onContextDestroyed, onContextInitialized
 
Methods inherited from interface org.gridgain.grid.spi.GridSpiManagementMBean
getAuthor, getGridGainHome, getLocalNodeId, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormatted, getVendorEmail, getVendorUrl, getVersion
 

Constructor Detail

GridJxinsightTracingSpi

public GridJxinsightTracingSpi()
Method Detail

spiStart

public void spiStart(String gridName)
              throws GridSpiException
This method is called to start SPI. After this method returns successfully kernel assumes that SPI is fully operational.

Specified by:
spiStart in interface GridSpi
Throws:
GridSpiException - Throws in case of any error during SPI start.
Parameters:
gridName - Name of grid instance this SPI is being started for (null for default grid).

spiStop

public void spiStop()
             throws GridSpiException
This method is called to stop SPI. After this method returns kernel assumes that this SPI is finished and all resources acquired by it are released. Note that this method can be called at any point including during recovery of failed start. It should make no assumptions on what state SPI will be in when this method is called.

Specified by:
spiStop in interface GridSpi
Throws:
GridSpiException - Thrown in case of any error during SPI stop.

beforeCall

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

Specified by:
beforeCall in interface GridTracingSpi
Parameters:
cls - Callee class.
methodName - Callee method name.
args - Callee method parameters.

afterCall

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

Specified by:
afterCall in interface GridTracingSpi
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.
exc - Exception thrown by given method call, if any.

toString

public String toString()

Overrides:
toString in class Object

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.