|
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.deployment.local.GridLocalDeploymentSpi
@GridSpiInfo(author="GridGain Systems",
url="www.gridgain.com",
email="support@gridgain.com",
version="3.6.0e.13012012")
@GridSpiMultipleInstancesSupport(value=true)
public class GridLocalDeploymentSpi
Local deployment SPI that implements only within VM deployment on local
node via GridLocalDeploymentSpi.register(ClassLoader, Class) method. This SPI requires
no configuration.
Note that if peer class loading is enabled (which is default behavior,
see GridConfiguration.isPeerClassLoadingEnabled()), then it is
enough to deploy a task only on one node and all other nodes will load
required classes from the node that initiated task execution.
GridLocalDeploymentSpi
with GridConfiguration as it is used by default and has no
configuration parameters.
| Wiki | |
| Forum |
GridDeploymentSpi
![]() |
![]() |
![]() |
![]() |
| Constructor Summary | |
|---|---|
GridLocalDeploymentSpi()
|
|
| Method Summary | |
|---|---|
GridDeploymentResource |
findResource(String rsrcName)
Finds class loader for the given class. |
protected List<String> |
getConsistentAttributeNames()
Returns back a list of attributes that should be consistent for this SPI. |
boolean |
register(ClassLoader ldr,
Class<?> rsrc)
Registers a class loader with this SPI. |
void |
setListener(GridDeploymentListener lsnr)
Sets or unsets deployment event listener. |
void |
spiStart(String gridName)
This method is called to start SPI. |
void |
spiStop()
This method is called to stop SPI. |
String |
toString()
|
boolean |
unregister(String rsrcName)
Unregisters all class loaders that have a class with given name or have a class with give GridTaskName value. |
| Methods inherited from class org.gridgain.grid.spi.GridSpiAdapter |
|---|
assertParameter, checkConfigurationConsistency, configInfo, createSpiAttributeName, getAuthor, 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 GridLocalDeploymentSpi()
| Method Detail |
|---|
public void spiStart(@Nullable
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.@Nullable public GridDeploymentResource findResource(String rsrcName)
findResource in interface GridDeploymentSpirsrcName - Class name or class alias to find class loader for.
null if not deployed.
public boolean register(ClassLoader ldr,
Class<?> rsrc)
throws GridSpiException
The array of classes passed in should be checked for presence of
GridTaskName annotations. The classes that have this annotation
should be accessible by this name from GridDeploymentSpi.findResource(String) method.
register in interface GridDeploymentSpiGridSpiException - If registration failed.ldr - Class loader to register.rsrc - Class that should be checked for aliases.
Currently the only alias in the system is GridTaskName for
task classes; in future, there may be others.
True if resource was registered.public boolean unregister(String rsrcName)
GridTaskName value.
unregister in interface GridDeploymentSpirsrcName - Either class name or GridTaskName value for a class
whose class loader needs to be unregistered.
True if resource was unregistered.public void setListener(GridDeploymentListener lsnr)
setListener in interface GridDeploymentSpilsnr - Listener for deployment events. null to unset the listener.protected List<String> getConsistentAttributeNames()
getConsistentAttributeNames in class GridSpiAdapterpublic 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
|
|
|