public class CachePluginManager extends GridCacheManagerAdapter
cctx, log, starting| Constructor and Description |
|---|
CachePluginManager(GridKernalContext ctx,
CacheConfiguration cfg) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createComponent(Class<T> cls)
Creates optional component.
|
protected void |
onKernalStart0() |
protected void |
onKernalStop0(boolean cancel) |
protected void |
start0() |
protected void |
stop0(boolean cancel,
boolean destroy) |
<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 configurations.
|
void |
validateRemotes(CacheConfiguration rmtCfg,
ClusterNode rmtNode)
Checks that remote caches has configuration compatible with the local.
|
context, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStop, printMemoryStats, start, startInfo, stop, stopInfo, toStringpublic CachePluginManager(GridKernalContext ctx, CacheConfiguration cfg)
ctx - Context.cfg - Cache config.protected void onKernalStart0()
throws IgniteCheckedException
onKernalStart0 in class GridCacheManagerAdapterIgniteCheckedException - If failed.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheManagerAdaptercancel - Cancel flag.protected void start0()
throws IgniteCheckedException
start0 in class GridCacheManagerAdapterIgniteCheckedException - If failed.protected void stop0(boolean cancel,
boolean destroy)
stop0 in class GridCacheManagerAdaptercancel - Cancel flag.destroy - Cache destroy flag.public <T> T createComponent(Class<T> cls)
cls - Component class.@Nullable
public <T,K,V> T unwrapCacheEntry(javax.cache.Cache.Entry<K,V> entry,
Class<T> cls)
javax.cache.Cache.Entry.unwrap(Class).T - Return type.K - Key type.V - Value type.entry - Entry to unwrap.cls - Type of the expected component.null if it's not available.public void validate()
throws IgniteCheckedException
IgniteCheckedException - If validation failed.public void validateRemotes(CacheConfiguration rmtCfg, ClusterNode rmtNode) throws IgniteCheckedException
rmtCfg - Remote cache configuration.rmtNode - Remote rmtNode.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018