|
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.attributes.GridAttributesTopologySpi
@GridSpiInfo(author="GridGain Systems",
url="www.gridgain.org",
email="support@gridgain.com",
version="x.x")
@GridSpiMultipleInstancesSupport(value=true)
public class GridAttributesTopologySpiThis class provides attribute based implementation for topology SPI. This implementation always returns all nodes (local and remote) that have attributes provided in configuration with given values. If no attributes were provided, all nodes, local and remote, will be included into topology.
GridAttributesTopologySpi.setAttributes(Map) - Map of attributes and their values that nodes should have.
Documentation
Email Support
Online Forums
Issue Tracking
Author: 2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.0.3
![]() |
![]() |
| Constructor Summary | |
|---|---|
GridAttributesTopologySpi()
|
|
| Method Summary | |
|---|---|
Map<String,Serializable> |
getAttributes()
Gets attribute names and values that nodes should have to be included in topology. |
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. |
void |
setAttributes(Map<String,Serializable> attrs)
Sets attributes that all nodes should have, to be in topology. |
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 GridAttributesTopologySpi()
| Method Detail |
|---|
public Map<String,Serializable> getAttributes()
Default value is null which means all nodes will be added.
getAttributes in interface GridAttributesTopologySpiMBean@GridSpiConfiguration(optional=true) public void setAttributes(Map<String,Serializable> attrs)
attrs - Map of node attributes.
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. |
|