public class MLPluginProvider extends Object implements PluginProvider<MLPluginConfiguration>
Constructor and Description |
---|
MLPluginProvider() |
Modifier and Type | Method and Description |
---|---|
String |
copyright() |
CachePluginProvider |
createCacheProvider(CachePluginContext ctx)
Creates cache plugin provider.
|
<T> T |
createComponent(PluginContext ctx,
Class<T> cls)
Creates Ignite component.
|
void |
initExtensions(PluginContext ctx,
ExtensionRegistry registry)
Registers extensions.
|
String |
name() |
void |
onIgniteStart()
Callback that notifies that Ignite has successfully started,
including all internal components.
|
void |
onIgniteStop(boolean cancel)
Callback to notify that Ignite is about to stop.
|
<T extends IgnitePlugin> |
plugin() |
@Nullable Serializable |
provideDiscoveryData(UUID nodeId)
Gets plugin discovery data object that will be sent to the new node
during discovery process.
|
void |
receiveDiscoveryData(UUID nodeId,
Serializable data)
Receives plugin discovery data object from remote nodes (called
on new node during discovery process).
|
void |
start(PluginContext ctx)
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
void |
validateNewNode(ClusterNode node)
Validates that new node can join grid topology, this method is called on coordinator
node before new node joins topology.
|
String |
version() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readClientCachePluginConfiguration, validateNewNode
public String name()
name
in interface PluginProvider<MLPluginConfiguration>
public String version()
version
in interface PluginProvider<MLPluginConfiguration>
public String copyright()
copyright
in interface PluginProvider<MLPluginConfiguration>
public <T extends IgnitePlugin> T plugin()
plugin
in interface PluginProvider<MLPluginConfiguration>
public void initExtensions(PluginContext ctx, ExtensionRegistry registry)
initExtensions
in interface PluginProvider<MLPluginConfiguration>
ctx
- Plugin context.registry
- Extension registry.@Nullable public <T> T createComponent(PluginContext ctx, Class<T> cls)
createComponent
in interface PluginProvider<MLPluginConfiguration>
ctx
- Plugin context.cls
- Ignite component class.null
if component is not supported (default Ignite component will be used).public CachePluginProvider createCacheProvider(CachePluginContext ctx)
createCacheProvider
in interface PluginProvider<MLPluginConfiguration>
ctx
- Plugin context.public void start(PluginContext ctx)
start
in interface PluginProvider<MLPluginConfiguration>
ctx
- Plugin context.public void stop(boolean cancel)
stop
in interface PluginProvider<MLPluginConfiguration>
cancel
- If true
, then all ongoing tasks or jobs for relevant
components need to be cancelled.public void onIgniteStart()
onIgniteStart
in interface PluginProvider<MLPluginConfiguration>
public void onIgniteStop(boolean cancel)
onIgniteStop
in interface PluginProvider<MLPluginConfiguration>
cancel
- Flag indicating whether jobs should be canceled.@Nullable public @Nullable Serializable provideDiscoveryData(UUID nodeId)
provideDiscoveryData
in interface PluginProvider<MLPluginConfiguration>
nodeId
- ID of new node that joins topology.null
if there is nothing
to send for this component.public void receiveDiscoveryData(UUID nodeId, Serializable data)
PluginProvider.provideDiscoveryData(UUID)
method on the other nodes.receiveDiscoveryData
in interface PluginProvider<MLPluginConfiguration>
nodeId
- Remote node ID.data
- Discovery data object or null
if nothing was
sent for this component.public void validateNewNode(ClusterNode node) throws PluginValidationException
validateNewNode
in interface PluginProvider<MLPluginConfiguration>
node
- Joining node.PluginValidationException
- If cluster-wide plugin validation failed.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024