Class GridCacheManagerAdapter<K,V>
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.GridCacheManagerAdapter<K,V>
-
- All Implemented Interfaces:
GridCacheManager<K,V>
- Direct Known Subclasses:
CacheContinuousQueryManager,CacheDataStructuresManager,CacheOffheapEvictionManager,CachePluginManager,GridCacheAffinityManager,GridCacheEventManager,GridCacheEvictionManager,GridCacheQueryManager,GridCacheStoreManagerAdapter,GridCacheTtlManager
public class GridCacheManagerAdapter<K,V> extends Object implements GridCacheManager<K,V>
Convenience adapter for cache managers.
-
-
Field Summary
Fields Modifier and Type Field Description protected GridCacheContextcctxContext.protected IgniteLoggerlogLogger.protected AtomicBooleanstartingStarting flag.
-
Constructor Summary
Constructors Constructor Description GridCacheManagerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GridCacheContext<K,V>context()protected StringkernalStartInfo()protected StringkernalStopInfo()protected IgniteLoggerlog()voidonDisconnected(IgniteFuture<?> reconnectFut)voidonKernalStart()protected voidonKernalStart0()voidonKernalStop(boolean cancel)protected voidonKernalStop0(boolean cancel)voidprintMemoryStats()Prints memory statistics (sizes of internal data structures, etc.).voidstart(GridCacheContext<K,V> cctx)Starts manager.protected voidstart0()protected StringstartInfo()voidstop(boolean cancel, boolean destroy)Stops manager.protected voidstop0(boolean cancel, boolean destroy)protected StringstopInfo()StringtoString()
-
-
-
Field Detail
-
cctx
protected GridCacheContext cctx
Context.
-
log
protected IgniteLogger log
Logger.
-
starting
protected final AtomicBoolean starting
Starting flag.
-
-
Method Detail
-
start
public final void start(GridCacheContext<K,V> cctx) throws IgniteCheckedException
Starts manager.- Specified by:
startin interfaceGridCacheManager<K,V>- Parameters:
cctx- Context.- Throws:
IgniteCheckedException- If failed.
-
log
protected IgniteLogger log()
- Returns:
- Logger.
-
context
protected GridCacheContext<K,V> context()
- Returns:
- Context.
-
start0
protected void start0() throws IgniteCheckedException- Throws:
IgniteCheckedException- If failed.
-
stop
public final void stop(boolean cancel, boolean destroy)Stops manager.- Specified by:
stopin interfaceGridCacheManager<K,V>- Parameters:
cancel- Cancel flag.destroy- Cache destroy flag.
-
stop0
protected void stop0(boolean cancel, boolean destroy)- Parameters:
cancel- Cancel flag.destroy- Cache destroy flag.
-
onKernalStart
public final void onKernalStart() throws IgniteCheckedException- Specified by:
onKernalStartin interfaceGridCacheManager<K,V>- Throws:
IgniteCheckedException- If failed.
-
onKernalStop
public final void onKernalStop(boolean cancel)
- Specified by:
onKernalStopin interfaceGridCacheManager<K,V>- Parameters:
cancel- Cancel flag.
-
onKernalStart0
protected void onKernalStart0() throws IgniteCheckedException- Throws:
IgniteCheckedException- If failed.
-
onKernalStop0
protected void onKernalStop0(boolean cancel)
- Parameters:
cancel- Cancel flag.
-
onDisconnected
public void onDisconnected(IgniteFuture<?> reconnectFut)
- Specified by:
onDisconnectedin interfaceGridCacheManager<K,V>- Parameters:
reconnectFut- Reconnect future.
-
printMemoryStats
public void printMemoryStats()
Prints memory statistics (sizes of internal data structures, etc.). NOTE: this method is for testing and profiling purposes only.- Specified by:
printMemoryStatsin interfaceGridCacheManager<K,V>
-
startInfo
protected String startInfo()
- Returns:
- Start info.
-
stopInfo
protected String stopInfo()
- Returns:
- Stop info.
-
kernalStartInfo
protected String kernalStartInfo()
- Returns:
- Start info.
-
kernalStopInfo
protected String kernalStopInfo()
- Returns:
- Stop info.
-
-