public class IgnitePluginProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, log| Constructor and Description |
|---|
IgnitePluginProcessor(GridKernalContext ctx,
IgniteConfiguration cfg) |
| Modifier and Type | Method and Description |
|---|---|
Collection<PluginProvider> |
allProviders() |
Object |
collectDiscoveryData(UUID nodeId)
Gets discovery data object that will be sent to new node
during discovery process.
|
<T> T |
createComponent(Class<T> cls) |
GridComponent.DiscoveryDataExchangeType |
discoveryDataType()
Gets unique component type to distinguish components providing discovery data.
|
<T extends Extension> |
extensions(Class<T> extensionItf) |
void |
onDiscoveryDataReceived(UUID nodeId,
UUID rmtNodeId,
Object data)
Receives discovery data object from remote nodes (called
on new node during discovery process).
|
<T extends PluginContext> |
pluginContextForProvider(PluginProvider provider) |
<T extends PluginProvider> |
pluginProvider(String name) |
void |
start()
Starts grid component.
|
assertParameter, onKernalStart, onKernalStop, printMemoryStats, stop, toString, validateNodepublic IgnitePluginProcessor(GridKernalContext ctx, IgniteConfiguration cfg)
ctx - Kernal context.cfg - Ignite configuration.@Nullable public <T extends Extension> T[] extensions(Class<T> extensionItf)
extensionItf - Extension interface class.@Nullable public <T extends PluginProvider> T pluginProvider(String name)
name - Plugin name.public Collection<PluginProvider> allProviders()
public <T extends PluginContext> T pluginContextForProvider(PluginProvider provider)
provider - Plugin context.public <T> T createComponent(Class<T> cls)
T - Component type.cls - Component class.null if no one plugin override this component.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.@Nullable public GridComponent.DiscoveryDataExchangeType discoveryDataType()
GridComponent.collectDiscoveryData(UUID).discoveryDataType in interface GridComponentdiscoveryDataType in class GridProcessorAdapter@Nullable public Object collectDiscoveryData(UUID nodeId)
collectDiscoveryData in interface GridComponentcollectDiscoveryData in class GridProcessorAdapternodeId - ID of new node that joins topology.null if there is nothing
to send for this component.public void onDiscoveryDataReceived(UUID nodeId, UUID rmtNodeId, Object data)
onDiscoveryDataReceived in interface GridComponentonDiscoveryDataReceived in class GridProcessorAdapternodeId - Joining node ID.rmtNodeId - Remote node ID for which data is provided.data - Discovery data object or null if nothing was
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015