Dashboard > GridGain User Guide > Table Of Contents > Developers Guide > Tracing SPI
Tracing SPI
Added by morpheus, last edited by morpheus on Dec 23, 2008  (view change)
Labels: 
(None)


Click on Javadoc link to open Javadoc documentation.

Package

org.gridgain.grid.spi.tracing Javadoc

Built-in Implementations

GridGain comes with following implementations for tracing SPI:

Description

GridTracingSpi Javadoc 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.

Optional SPI

As tracing may cause significant execution overhead, this SPI was made optional. If not provided in GridConfiguration Javadoc , then no tracing will be used at all.

Configuration

GridTracingSpi Javadoc is provided in Grid Configuration passed into GridFactory Javadoc at startup. You can configure tracing SPI implementation as follows

GridConfigurationAdapter cfg = new GridConfigurationAdapter();

GridJxinsightTracingSpi traceSpi = new GridJxinsightTracingSpi();

// Configure tracing SPI to be used.
cfg.setTracingSpi(traceSpi);

GridFactory.start(cfg);

Note that GridConfiguration Javadoc interface is just a bean and can also be configured using spring XML configuration.


For more information about using Spring framework for configuration click here.

Default Implementation

If no tracing SPI is provided in configuration, by default no tracing will be used at all.

GridJxinsightTracingSpi (GridGain User Guide)

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.10 Build:#528 Nov 29, 2006) - Bug/feature request - Contact Administrators