|
GridGain 2.0.3
Java API Specification |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Apache20LicenseCompatible public interface GridCommunicationSpi
Communication SPI is responsible for data exchange between nodes.
Communication SPI is one of the most important SPI in GridGain. It is used heavily throughout the system and provides means for all data exchanges between nodes, such as internal implementation details and user driven messages.
Functionality to this SPI is exposed directly in Grid interface:
Grid.sendMessage(Collection, Serializable)Grid.sendMessage(GridNode, Serializable)Grid.addMessageListener(GridMessageListener)GridGain comes with large set of built-in communication SPI implementations:
GridCoherenceCommunicationSpiGridJgroupsCommunicationSpiGridJmsCommunicationSpiGridMailCommunicationSpiGridMuleCommunicationSpiGridTcpCommunicationSpi
Documentation
Email Support
Online Forums
Issue Tracking
Author: 2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.0.3
![]() |
![]() |
| Method Summary | |
|---|---|
void |
sendMessage(Collection<GridNode> destNodes,
Serializable msg)
Sends given message to destination nodes. |
void |
sendMessage(GridNode destNode,
Serializable msg)
Sends given message to destination node. |
void |
setListener(GridMessageListener listener)
Set communication listener. |
| Methods inherited from interface org.gridgain.grid.spi.GridSpi |
|---|
getNodeAttributes, onContextDestroyed, onContextInitialized, spiStart, spiStop |
| Method Detail |
|---|
void sendMessage(GridNode destNode,
Serializable msg)
throws GridSpiException
GridSpiException - Thrown in case of any error during sending the message.
Note that this is not guaranteed that failed communication will result
in thrown exception as this is dependant on SPI implementation.destNode - Destination node.msg - Message to send.
void sendMessage(Collection<GridNode> destNodes,
Serializable msg)
throws GridSpiException
GridSpiException - Thrown in case of any error during sending the message.
Note that this is not guaranteed that failed communication will result
in thrown exception as this is dependant on SPI implementation.destNodes - Destination nodes.msg - Message to send.void setListener(GridMessageListener listener)
listener - Listener to set or null to unset the listener.
|
GridGain 2.0.3
Java API Specification |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
GridGain - Grid Computing Made Simple, ver. 2.0.3.20052008
2005-2008 Copyright © GridGain Systems. All Rights Reserved. |
|