public class GridCacheProcessor extends GridProcessorAdapter
ctx, log| Constructor and Description |
|---|
GridCacheProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(Map<String,Object> attrs)
Adds attributes from this component to map of all node attributes.
|
<K,V> GridCache<K,V> |
cache() |
<K,V> GridCache<K,V> |
cache(String name) |
Collection<GridCache<?,?>> |
caches() |
<K,V> GridCacheAdapter<K,V> |
internalCache() |
<K,V> GridCacheAdapter<K,V> |
internalCache(String name) |
Collection<GridCacheAdapter<?,?>> |
internalCaches() |
long |
lastDataVersion() |
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(UUID leftNodeId,
ClassLoader ldr)
Callback invoked by deployment manager for whenever a class loader
gets undeployed.
|
GridFuture<?> |
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() |
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
GridNodeValidationResult |
validateNode(GridNode node)
Validates that new node can join grid topology, this method is called on coordinator
node before new node joins topology.
|
assertParameter, collectDiscoveryData, onDiscoveryDataReceived, toStringpublic GridCacheProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws GridException
start in interface GridComponentstart in class GridProcessorAdapterGridException - Throws in case of any errors.public void addAttributes(Map<String,Object> attrs) throws GridException
addAttributes in interface GridProcessoraddAttributes in class GridProcessorAdapterattrs - Map of all attributes.GridException - If failed.@Nullable public GridNodeValidationResult validateNode(GridNode node)
validateNode in interface GridComponentvalidateNode in class GridProcessorAdapternode - Joining node.null in case of success.public void onKernalStart()
throws GridException
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapterGridException - 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 GridException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.GridException - Thrown in case of any errors.@Nullable public GridFuture<?> 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 <K,V> GridCache<K,V> publicCache(@Nullable String name)
K - type of keys.V - type of values.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 Collection<GridCacheAdapter<?,?>> internalCaches()
public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapterpublic void onUndeployed(@Nullable UUID leftNodeId, ClassLoader ldr)
leftNodeId - Left node ID.ldr - Class loader.Copyright © 2014. All rights reserved.