|
GridGain 2.0.3
Java API Specification |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridgain.grid.spi.GridSpiAdapter
org.gridgain.grid.spi.topology.basic.GridBasicTopologySpi
@GridSpiInfo(author="GridGain Systems",
url="www.gridgain.org",
email="support@gridgain.com",
version="x.x")
@GridSpiMultipleInstancesSupport(value=true)
public class GridBasicTopologySpiThis class provides basic implementation for topology SPI. This implementation always returns either all available remote grid nodes, remote and local nodes, or only a local node.
GridBasicTopologySpi.setLocalNode(boolean) - whether or not to return local node (default is true).GridBasicTopologySpi.setRemoteNodes(boolean) - whether or not to return remote nodes (default is true).
Documentation
Email Support
Online Forums
Issue Tracking
Author: 2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.0.3
![]() |
![]() |
| Constructor Summary | |
|---|---|
GridBasicTopologySpi()
|
|
| Method Summary | |
|---|---|
Collection<GridNode> |
getTopology(GridTaskSession ses,
Collection<GridNode> grid)
This method is called by GridGain right before calling GridTask.map(List, Object)
to obtain a topology for the task's split. |
boolean |
isLocalNode()
Indicates whether or not to return local node. |
boolean |
isRemoteNodes()
Indicates whether or not to return remote nodes. |
void |
setLocalNode(boolean isLocalNode)
Sets the flag on whether or not return local node. |
void |
setRemoteNodes(boolean isRmtNodes)
Sets the flag on whether or not return available remote nodes. |
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 |
|---|
public GridBasicTopologySpi()
| Method Detail |
|---|
public boolean isLocalNode()
isLocalNode in interface GridBasicTopologySpiMBean@GridSpiConfiguration(optional=true) public void setLocalNode(boolean isLocalNode)
isLocalNode - true to return local node, false otherwise.public boolean isRemoteNodes()
isRemoteNodes in interface GridBasicTopologySpiMBean@GridSpiConfiguration(optional=true) public void setRemoteNodes(boolean isRmtNodes)
isRmtNodes - true to return remote nodes, false otherwise.
public Collection<GridNode> getTopology(GridTaskSession ses,
Collection<GridNode> grid)
throws GridException
GridTask.map(List, Object)
to obtain a topology for the task's split.
getTopology in interface GridTopologySpiGridException - Thrown in case if topology cannot be obtained.ses - Current task's session. If implementation does not depend on task's
information it may ignore it.grid - Full set of all grid nodes.
public void spiStart(String gridName)
throws GridSpiException
spiStart in interface GridSpiGridSpiException - Throws in case of any error during SPI start.gridName - Name of grid instance this SPI is being started for
(null for default grid).
public void spiStop()
throws GridSpiException
spiStop in interface GridSpiGridSpiException - Thrown in case of any error during SPI stop.public String toString()
toString in class Object
|
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. |
|