public class GridCacheProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, log| Constructor and Description |
|---|
GridCacheProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> GridCache<K,V> |
atomicsCache()
Gets utility cache for atomic data structures.
|
<K,V> GridCache<K,V> |
cache() |
<K,V> GridCache<K,V> |
cache(String name) |
Collection<GridCache<?,?>> |
caches() |
void |
cancelUserOperations()
Cancel all user operations.
|
<K,V> GridCacheSharedContext<K,V> |
context() |
<K,V> GridCacheAdapter<K,V> |
internalCache() |
<K,V> GridCacheAdapter<K,V> |
internalCache(String name) |
Collection<GridCacheAdapter<?,?>> |
internalCaches() |
<K,V> IgniteCacheProxy<K,V> |
jcache(String name) |
long |
lastDataVersion() |
GridCacheAdapter<Integer,String> |
marshallerCache() |
void |
onEvictFromSwap(String spaceName,
byte[] keyBytes) |
void |
onKernalStart()
Callback that notifies that kernal has successfully started,
including all managers and processors.
|
void |
onKernalStop(boolean cancel)
Callback to notify that kernal is about to stop.
|
void |
onUndeployed(ClassLoader ldr)
Callback invoked by deployment manager for whenever a class loader
gets undeployed.
|
IgniteInternalFuture<?> |
orderedPreloadFuture(int order)
Gets preload finish future for preload-ordered cache with given order.
|
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
<K,V> GridCache<K,V> |
publicCache() |
<K,V> GridCache<K,V> |
publicCache(String name) |
Collection<GridCache<?,?>> |
publicCaches() |
<K,V> IgniteCache<K,V> |
publicJCache(String name) |
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
boolean |
systemCache(String name) |
IgniteTransactionsEx |
transactions() |
<K,V> GridCacheAdapter<K,V> |
utilityCache()
Gets utility cache.
|
<K extends GridCacheUtilityKey,V> |
utilityCache(Class<K> keyCls,
Class<V> valCls)
Gets utility cache.
|
IgniteSpiNodeValidationResult |
validateNode(ClusterNode node)
Validates that new node can join grid topology, this method is called on coordinator
node before new node joins topology.
|
assertParameter, collectDiscoveryData, discoveryDataType, onDiscoveryDataReceived, toStringpublic GridCacheProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.@Nullable public IgniteSpiNodeValidationResult validateNode(ClusterNode node)
validateNode in interface GridComponentvalidateNode in class GridProcessorAdapternode - Joining node.null in case of success.public void onKernalStart()
throws IgniteCheckedException
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapterIgniteCheckedException - Thrown in case of any errors.public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.public void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.@Nullable public IgniteInternalFuture<?> orderedPreloadFuture(int order)
order.order - Cache order.null if order is minimal order found.public void onEvictFromSwap(String spaceName, byte[] keyBytes)
spaceName - Space name.keyBytes - Key bytes.public long lastDataVersion()
public <K,V> GridCache<K,V> cache()
K - type of keys.V - type of values.public <K,V> GridCache<K,V> cache(@Nullable String name)
K - type of keys.V - type of values.name - Cache name.public Collection<GridCache<?,?>> caches()
public <K,V> GridCache<K,V> publicCache()
K - type of keys.V - type of values.public GridCacheAdapter<Integer,String> marshallerCache()
public <K extends GridCacheUtilityKey,V> GridCacheProjectionEx<K,V> utilityCache(Class<K> keyCls, Class<V> valCls)
keyCls - Key class.valCls - Value class.public <K,V> GridCacheAdapter<K,V> utilityCache()
public <K,V> GridCache<K,V> atomicsCache()
public <K,V> GridCache<K,V> publicCache(@Nullable String name)
K - type of keys.V - type of values.name - Cache name.public <K,V> IgniteCache<K,V> publicJCache(@Nullable String name)
K - type of keys.V - type of values.name - Cache name.public <K,V> IgniteCacheProxy<K,V> jcache(@Nullable String name)
name - Cache name.public Collection<GridCache<?,?>> publicCaches()
public <K,V> GridCacheAdapter<K,V> internalCache()
K - type of keys.V - type of values.public <K,V> GridCacheAdapter<K,V> internalCache(@Nullable String name)
K - type of keys.V - type of values.name - Cache name.public void cancelUserOperations()
public Collection<GridCacheAdapter<?,?>> internalCaches()
public boolean systemCache(@Nullable String name)
name - Cache name.True if specified cache is system, false otherwise.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapterpublic void onUndeployed(ClassLoader ldr)
ldr - Class loader.public <K,V> GridCacheSharedContext<K,V> context()
public IgniteTransactionsEx transactions()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015