public class GridCacheStoreManager extends GridCacheManagerAdapter
cctx, log| Constructor and Description |
|---|
GridCacheStoreManager(GridKernalContext ctx,
Map<CacheStore,ThreadLocal> sesHolders,
CacheStore<Object,Object> cfgStore,
CacheConfiguration cfg) |
context, kernalStartInfo, kernalStopInfo, log, onKernalStart, onKernalStart0, onKernalStop, onKernalStop0, printMemoryStats, start, startInfo, stop, stopInfo, toStringpublic GridCacheStoreManager(GridKernalContext ctx, Map<CacheStore,ThreadLocal> sesHolders, @Nullable CacheStore<Object,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 GridCacheManagerAdapterIgniteCheckedException - If failed.protected void stop0(boolean cancel)
stop0 in class GridCacheManagerAdaptercancel - 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 Object loadFromStore(@Nullable IgniteInternalTx tx, KeyCacheObject 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 KeyCacheObject> keys, GridInClosure3<KeyCacheObject,Object,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 KeyCacheObject> keys, IgniteBiInClosure<KeyCacheObject,Object> 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<KeyCacheObject,Object,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, Object key, Object 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<Object,IgniteBiTuple<Object,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, Object 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<Object> keys) throws IgniteCheckedException
tx - Cache transaction.keys - Key.True if there is a persistent storage.IgniteCheckedException - If storage failed.public CacheStore<Object,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 Release Date : March 31 2015