public interface CachePluginProvider<C extends CachePluginConfiguration>
CachePluginConfiguration.| Modifier and Type | Method and Description |
|---|---|
<T> T |
createComponent(Class<T> cls) |
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.
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
<T,K,V> T |
unwrapCacheEntry(javax.cache.Cache.Entry<K,V> entry,
Class<T> cls)
Unwrap entry to specified type.
|
void |
validate()
Validates cache plugin configuration in process of cache creation.
|
void |
validateRemote(CacheConfiguration locCfg,
C locPluginCcfg,
CacheConfiguration rmtCfg,
ClusterNode rmtNode)
Checks that remote caches has configuration compatible with the local.
|
void start()
throws IgniteCheckedException
IgniteCheckedException - Throws in case of any errors.void stop(boolean cancel)
cancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.void onIgniteStart()
throws IgniteCheckedException
IgniteCheckedException - Thrown in case of any errors.void onIgniteStop(boolean cancel)
cancel - Flag indicating whether jobs should be canceled.@Nullable <T> T createComponent(Class<T> cls)
cls - Ignite component class.null if component is not supported.@Nullable <T,K,V> T unwrapCacheEntry(javax.cache.Cache.Entry<K,V> entry, Class<T> cls)
javax.cache.Cache.Entry.unwrap(Class).entry - Mutable entry to unwrap.cls - Type of the expected component.null if it's not available.void validate()
throws IgniteCheckedException
IgniteCheckedException - If validation failed.void validateRemote(CacheConfiguration locCfg, C locPluginCcfg, CacheConfiguration rmtCfg, ClusterNode rmtNode) throws IgniteCheckedException
locCfg - Local configuration.locPluginCcfg - Local plugin configuration.rmtCfg - Remote configuration.rmtNode - Remote node.IgniteCheckedException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.11 Release Date : April 8 2016