|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| 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.com",
email="support@gridgain.com",
version="3.6.0e.13012012")
@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).
| Wiki | |
| Forum |
![]() |
![]() |
| Constructor Summary | |
|---|---|
GridBasicTopologySpi()
|
|
| Method Summary | |
|---|---|
Collection<GridNode> |
getTopology(GridTaskSession ses,
Collection<? extends 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, createSpiAttributeName, getAuthor, getConsistentAttributeNames, getGridGainHome, getLocalNodeId, getName, getNodeAttributes, getSpiContext, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormatted, getVendorEmail, getVendorUrl, getVersion, injectables, onContextDestroyed, onContextInitialized, registerMBean, setJson, setName, startInfo, startStopwatch, stopInfo, unregisterMBean |
| 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 |
|---|
getName, getNodeAttributes, onContextDestroyed, onContextInitialized |
| Methods inherited from interface org.gridgain.grid.spi.GridSpiJsonConfigurable |
|---|
setJson |
| Methods inherited from interface org.gridgain.grid.spi.GridSpiManagementMBean |
|---|
getAuthor, getGridGainHome, getLocalNodeId, getName, 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<? extends GridNode> grid) throws GridSpiException
GridTask.map(List, Object)
to obtain a topology for the task's split.
getTopology in interface GridTopologySpiGridSpiException - 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
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.
spiStop in interface GridSpiGridSpiException - Thrown in case of any error during SPI stop.public String toString()
toString in class Object
|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
GridGain - Real Time Big Data
|
|
|