GridGain™ 2.0.3
Java API Specification

org.gridgain.grid.spi.eventstorage
Interface GridEventStorageSpi

All Superinterfaces:
GridSpi
All Known Implementing Classes:
GridMemoryEventStorageSpi

@Apache20LicenseCompatible
public interface GridEventStorageSpi
extends GridSpi

This SPI provides local node events storage. SPI allows for recording local node events and querying recorded local events. Every node during its life-cycle goes through a serious of events such as task deployment, task execution, job execution, etc. (see GridEventType for full list of event types). For performance reasons GridGain is designed to store all locally produced events locally. These events can be later retrieved using either distributed query:

or local only query:



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

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

See Also:
GridEventType
 

Method Summary
 List<GridEvent> queryLocalEvents(GridEventFilter filter)
          Queries locally-stored events only.
 void record(GridEvent evt)
          Records single event.
 
Methods inherited from interface org.gridgain.grid.spi.GridSpi
getNodeAttributes, onContextDestroyed, onContextInitialized, spiStart, spiStop
 

Method Detail

queryLocalEvents

List<GridEvent> queryLocalEvents(@Nullable
                                 GridEventFilter filter)
Queries locally-stored events only. Events could be filtered out by given filter.

Parameters:
filter - Event filter or null to use no filter and return all events.
Returns:
Collection of events.

record

void record(GridEvent evt)
            throws GridSpiException
Records single event.

Throws:
GridSpiException - If event recording failed for any reason.
Parameters:
evt - Event that should be recorded.

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.