public abstract class GridCacheStoreManagerAdapter extends GridCacheManagerAdapter implements CacheStoreManager
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
alwaysKeepBinary
Always keep binary.
|
protected CacheStore<?,?> |
cfgStore |
protected CacheStore<Object,Object> |
store |
cctx, log, starting| Constructor and Description |
|---|
GridCacheStoreManagerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract CacheConfiguration |
cacheConfiguration() |
boolean |
configured() |
CacheStore<?,?> |
configuredStore() |
void |
forceFlush() |
protected abstract GridKernalContext |
igniteContext() |
void |
initialize(CacheStore cfgStore,
Map sesHolders)
Initialize store manager.
|
boolean |
isLocal() |
boolean |
isWriteBehind() |
boolean |
isWriteThrough() |
boolean |
isWriteToStoreFromDht() |
Object |
load(IgniteInternalTx tx,
KeyCacheObject key)
Loads data from persistent store.
|
boolean |
loadAll(IgniteInternalTx tx,
Collection keys,
IgniteBiInClosure vis)
Loads data from persistent store.
|
boolean |
loadCache(GridInClosure3 vis,
Object[] args)
Loads data from persistent store.
|
void |
localStoreLoadAll(IgniteInternalTx tx,
Collection keys,
GridInClosure3 vis) |
boolean |
put(IgniteInternalTx tx,
KeyCacheObject key,
CacheObject val,
GridCacheVersion ver)
Puts key-value pair into storage.
|
boolean |
putAll(IgniteInternalTx tx,
Map<? extends KeyCacheObject,IgniteBiTuple<? extends CacheObject,GridCacheVersion>> map)
Puts key-value pair into storage.
|
boolean |
remove(IgniteInternalTx tx,
KeyCacheObject key) |
boolean |
removeAll(IgniteInternalTx tx,
Collection<? extends KeyCacheObject> keys) |
void |
sessionEnd(IgniteInternalTx tx,
boolean commit,
boolean last,
boolean storeSessionEnded) |
protected void |
start0() |
protected void |
stop0(boolean cancel,
boolean destroy) |
CacheStore<Object,Object> |
store() |
void |
writeBehindCacheStoreSessionListenerStart()
Notifies cache store session listeners.
|
void |
writeBehindSessionEnd(boolean threwEx)
End session initiated by write-behind store.
|
void |
writeBehindSessionInit()
Start session initiated by write-behind store.
|
context, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStart0, onKernalStop, onKernalStop0, printMemoryStats, start, startInfo, stop, stopInfo, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfiguredConvertBinary, convertBinaryonDisconnected, onKernalStart, onKernalStop, printMemoryStats, start, stopprotected CacheStore<Object,Object> store
protected CacheStore<?,?> cfgStore
protected boolean alwaysKeepBinary
public void initialize(@Nullable
CacheStore cfgStore,
Map sesHolders)
throws IgniteCheckedException
initialize in interface CacheStoreManagercfgStore - Actual store.sesHolders - Session holders.IgniteCheckedException - If failed.public boolean isWriteThrough()
isWriteThrough in interface CacheStoreManagerTrue is write-through is enabled.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 boolean isLocal()
isLocal in interface CacheStoreManagertrue If local store is configured.public boolean configured()
configured in interface CacheStoreManagertrue If store configured.public CacheStore<?,?> configuredStore()
configuredStore in interface CacheStoreManager@Nullable public final Object load(@Nullable IgniteInternalTx tx, KeyCacheObject key) throws IgniteCheckedException
load in interface CacheStoreManagertx - Cache transaction.key - Cache key.IgniteCheckedException - If data loading failed.public boolean isWriteBehind()
isWriteBehind in interface CacheStoreManagerTrue is write-behind is enabled.public boolean isWriteToStoreFromDht()
isWriteToStoreFromDht in interface CacheStoreManagerpublic final void localStoreLoadAll(@Nullable
IgniteInternalTx tx,
Collection keys,
GridInClosure3 vis)
throws IgniteCheckedException
localStoreLoadAll in interface CacheStoreManagertx - Cache transaction.keys - Cache keys.vis - Closure to apply for loaded elements.IgniteCheckedException - If data loading failed.public final boolean loadAll(@Nullable
IgniteInternalTx tx,
Collection keys,
IgniteBiInClosure vis)
throws IgniteCheckedException
loadAll in interface CacheStoreManagertx - Cache transaction.keys - Cache keys.vis - Closure.True if there is a persistent storage.IgniteCheckedException - If data loading failed.public final boolean loadCache(GridInClosure3 vis, Object[] args) throws IgniteCheckedException
loadCache in interface CacheStoreManagervis - Closer to cache loaded elements.args - User arguments.True if there is a persistent storage.IgniteCheckedException - If data loading failed.public final boolean put(@Nullable
IgniteInternalTx tx,
KeyCacheObject key,
CacheObject val,
GridCacheVersion ver)
throws IgniteCheckedException
put in interface CacheStoreManagertx - Cache transaction.key - Key.val - Value.ver - Version.true If there is a persistent storage.IgniteCheckedException - If storage failed.public final boolean putAll(@Nullable
IgniteInternalTx tx,
Map<? extends KeyCacheObject,IgniteBiTuple<? extends CacheObject,GridCacheVersion>> map)
throws IgniteCheckedException
putAll in interface CacheStoreManagertx - Cache transaction.map - Map.True if there is a persistent storage.IgniteCheckedException - If storage failed.public final boolean remove(@Nullable
IgniteInternalTx tx,
KeyCacheObject key)
throws IgniteCheckedException
remove in interface CacheStoreManagertx - Cache transaction.key - Key.True if there is a persistent storage.IgniteCheckedException - If storage failed.public final boolean removeAll(@Nullable
IgniteInternalTx tx,
Collection<? extends KeyCacheObject> keys)
throws IgniteCheckedException
removeAll in interface CacheStoreManagertx - Cache transaction.keys - Key.True if there is a persistent storage.IgniteCheckedException - If storage failed.public CacheStore<Object,Object> store()
store in interface CacheStoreManagerpublic void forceFlush()
throws IgniteCheckedException
forceFlush in interface CacheStoreManagerIgniteCheckedException - If failed.public final void sessionEnd(IgniteInternalTx tx, boolean commit, boolean last, boolean storeSessionEnded) throws IgniteCheckedException
sessionEnd in interface CacheStoreManagertx - Transaction.commit - Commit.last - True if this is last store in transaction.storeSessionEnded - True if session for underlying store already ended.IgniteCheckedException - If failed.public void writeBehindSessionInit()
throws IgniteCheckedException
writeBehindSessionInit in interface CacheStoreManagerIgniteCheckedException - If failed.public void writeBehindCacheStoreSessionListenerStart()
throws IgniteCheckedException
writeBehindCacheStoreSessionListenerStart in interface CacheStoreManagerIgniteCheckedException - If failed.public void writeBehindSessionEnd(boolean threwEx)
throws IgniteCheckedException
writeBehindSessionEnd in interface CacheStoreManagerthrewEx - If exception was thrown.IgniteCheckedException - If failed.protected abstract GridKernalContext igniteContext()
protected abstract CacheConfiguration cacheConfiguration()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019