public class GridCacheSharedManagerAdapter<K,V> extends Object implements GridCacheSharedManager<K,V>
Modifier and Type | Field and Description |
---|---|
protected GridCacheSharedContext<K,V> |
cctx
Context.
|
protected IgniteLogger |
log
Logger.
|
Constructor and Description |
---|
GridCacheSharedManagerAdapter() |
Modifier and Type | Method and Description |
---|---|
protected GridCacheSharedContext<K,V> |
context() |
protected boolean |
isStopping() |
protected String |
kernalStartInfo() |
protected String |
kernalStopInfo() |
protected IgniteLogger |
log() |
void |
onDisconnected(IgniteFuture<?> reconnectFut) |
void |
onKernalStart(boolean reconnect) |
protected void |
onKernalStart0(boolean reconnect) |
void |
onKernalStop(boolean cancel) |
protected void |
onKernalStop0(boolean cancel) |
void |
printMemoryStats()
Prints memory statistics (sizes of internal data structures, etc.).
|
void |
start(GridCacheSharedContext<K,V> cctx)
Starts manager.
|
protected void |
start0() |
protected String |
startInfo() |
void |
stop(boolean cancel)
Stops manager.
|
protected void |
stop0(boolean cancel) |
protected String |
stopInfo() |
String |
toString() |
protected GridCacheSharedContext<K,V> cctx
protected IgniteLogger log
public final void start(GridCacheSharedContext<K,V> cctx) throws IgniteCheckedException
start
in interface GridCacheSharedManager<K,V>
cctx
- Context.IgniteCheckedException
- If failed.protected IgniteLogger log()
protected GridCacheSharedContext<K,V> context()
protected void start0() throws IgniteCheckedException
IgniteCheckedException
- If failed.public final void stop(boolean cancel)
stop
in interface GridCacheSharedManager<K,V>
cancel
- Cancel flag.protected final boolean isStopping()
true
If this component is stopping.protected void stop0(boolean cancel)
cancel
- Cancel flag.public final void onKernalStart(boolean reconnect) throws IgniteCheckedException
onKernalStart
in interface GridCacheSharedManager<K,V>
reconnect
- True
if manager restarted after client reconnect.IgniteCheckedException
- If failed.public final void onKernalStop(boolean cancel)
onKernalStop
in interface GridCacheSharedManager<K,V>
cancel
- Cancel flag.protected void onKernalStart0(boolean reconnect) throws IgniteCheckedException
reconnect
- True
if manager restarted after client reconnect.IgniteCheckedException
- If failed.protected void onKernalStop0(boolean cancel)
cancel
- Cancel flag.public void onDisconnected(IgniteFuture<?> reconnectFut)
onDisconnected
in interface GridCacheSharedManager<K,V>
reconnectFut
- Reconnect future.public void printMemoryStats()
printMemoryStats
in interface GridCacheSharedManager<K,V>
protected String startInfo()
protected String stopInfo()
protected String kernalStartInfo()
protected String kernalStopInfo()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017