public class GridCacheStoreManager<K,V> extends GridCacheManagerAdapter<K,V>
cctx, log| Constructor and Description |
|---|
GridCacheStoreManager(GridKernalContext ctx,
Map<CacheStore,ThreadLocal> sesHolders,
CacheStore<K,Object> cfgStore,
CacheConfiguration cfg) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configured() |
CacheStore<?,?> |
configuredStore() |
boolean |
convertPortable() |
void |
convertPortable(boolean convertPortable) |
void |
forceFlush() |
boolean |
isLocalStore() |
boolean |
loadAllFromStore(IgniteInternalTx tx,
Collection<? extends K> keys,
IgniteBiInClosure<K,V> vis)
Loads data from persistent store.
|
boolean |
loadCache(GridInClosure3<K,V,GridCacheVersion> vis,
Object[] args)
Loads data from persistent store.
|
V |
loadFromStore(IgniteInternalTx tx,
K key)
Loads data from persistent store.
|
void |
localStoreLoadAll(IgniteInternalTx tx,
Collection<? extends K> keys,
GridInClosure3<K,V,GridCacheVersion> vis) |
boolean |
putAllToStore(IgniteInternalTx tx,
Map<K,IgniteBiTuple<V,GridCacheVersion>> map)
Puts key-value pair into storage.
|
boolean |
putToStore(IgniteInternalTx tx,
K key,
V val,
GridCacheVersion ver)
Puts key-value pair into storage.
|
boolean |
removeAllFromStore(IgniteInternalTx tx,
Collection<?> keys) |
boolean |
removeFromStore(IgniteInternalTx tx,
K key) |
protected void |
start0() |
protected void |
stop0(boolean cancel) |
CacheStore<K,Object> |
store() |
void |
txEnd(IgniteInternalTx tx,
boolean commit) |
boolean |
writeThrough() |
boolean |
writeToStoreFromDht() |
context, kernalStartInfo, kernalStopInfo, log, onKernalStart, onKernalStart0, onKernalStop, onKernalStop0, printMemoryStats, start, startInfo, stop, stopInfo, toStringpublic GridCacheStoreManager(GridKernalContext ctx, Map<CacheStore,ThreadLocal> sesHolders, @Nullable CacheStore<K,Object> cfgStore, CacheConfiguration cfg) throws IgniteCheckedException
ctx - Kernal context.sesHolders - Session holders map to use the same session holder for different managers if they use
the same store instance.cfgStore - Store provided in configuration.cfg - Cache configuration.IgniteCheckedException - In case of error.public boolean writeThrough()
True is write-through is enabled.public CacheStore<?,?> configuredStore()
protected void start0()
throws IgniteCheckedException
start0 in class GridCacheManagerAdapter<K,V>IgniteCheckedException - If failed.protected void stop0(boolean cancel)
stop0 in class GridCacheManagerAdapter<K,V>cancel - Cancel flag.public boolean convertPortable()
public void convertPortable(boolean convertPortable)
convertPortable - Convert-portable flag.public boolean isLocalStore()
true If local store is configured.public boolean configured()
true If store configured.@Nullable public V loadFromStore(@Nullable IgniteInternalTx tx, K key) throws IgniteCheckedException
tx - Cache transaction.key - Cache key.IgniteCheckedException - If data loading failed.public boolean writeToStoreFromDht()
public void localStoreLoadAll(@Nullable IgniteInternalTx tx, Collection<? extends K> keys, GridInClosure3<K,V,GridCacheVersion> vis) throws IgniteCheckedException
tx - Cache transaction.keys - Cache keys.vis - Closure to apply for loaded elements.IgniteCheckedException - If data loading failed.public boolean loadAllFromStore(@Nullable IgniteInternalTx tx, Collection<? extends K> keys, IgniteBiInClosure<K,V> vis) throws IgniteCheckedException
tx - Cache transaction.keys - Cache keys.vis - Closure.True if there is a persistent storage.IgniteCheckedException - If data loading failed.public boolean loadCache(GridInClosure3<K,V,GridCacheVersion> vis, Object[] args) throws IgniteCheckedException
vis - Closer to cache loaded elements.args - User arguments.True if there is a persistent storage.IgniteCheckedException - If data loading failed.public boolean putToStore(@Nullable IgniteInternalTx tx, K key, V val, GridCacheVersion ver) throws IgniteCheckedException
tx - Cache transaction.key - Key.val - Value.ver - Version.true If there is a persistent storage.IgniteCheckedException - If storage failed.public boolean putAllToStore(@Nullable IgniteInternalTx tx, Map<K,IgniteBiTuple<V,GridCacheVersion>> map) throws IgniteCheckedException
tx - Cache transaction.map - Map.True if there is a persistent storage.IgniteCheckedException - If storage failed.public boolean removeFromStore(@Nullable IgniteInternalTx tx, K key) throws IgniteCheckedException
tx - Cache transaction.key - Key.True if there is a persistent storage.IgniteCheckedException - If storage failed.public boolean removeAllFromStore(@Nullable IgniteInternalTx tx, Collection<?> keys) throws IgniteCheckedException
tx - Cache transaction.keys - Key.True if there is a persistent storage.IgniteCheckedException - If storage failed.public CacheStore<K,Object> store()
public void forceFlush()
throws IgniteCheckedException
IgniteCheckedException - If failed.public void txEnd(IgniteInternalTx tx, boolean commit) throws IgniteCheckedException
tx - Transaction.commit - Commit.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015