/** {@inheritDoc} */ @Override protected void onKernalStop0(boolean cancel) { busyLock.block(); if (queueQryId != null) cctx.continuousQueries().cancelInternalQuery(queueQryId); for (GridCacheQueueProxy q : queuesMap.values()) q.delegate().onKernalStop(); }
/** {@inheritDoc} */ @Override public void onKernalStop(boolean cancel) { super.onKernalStop(cancel); for (GridCacheRemovable ds : dsMap.values()) { if (ds instanceof GridCacheSemaphoreEx) ((GridCacheSemaphoreEx)ds).stop(); if (ds instanceof GridCacheLockEx) ((GridCacheLockEx)ds).onStop(); } CountDownLatch init0 = initLatch; if (init0 != null && init0.getCount() > 0) { initFailed = true; init0.countDown(); initLatch = null; } Iterator<Map.Entry<Integer, UUID>> iter = qryIdMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry<Integer, UUID> e = iter.next(); iter.remove(); GridCacheContext cctx = ctx.cache().context().cacheContext(e.getKey()); cctx.continuousQueries().cancelInternalQuery(e.getValue()); } }
if (uuid != null) grid(0).context().cache().cache(cache.getName()).context().continuousQueries() .cancelInternalQuery(uuid);
/** {@inheritDoc} */ @Override public void onKernalStop(boolean cancel) { super.onKernalStop(cancel); for (GridCacheRemovable ds : dsMap.values()) { if (ds instanceof GridCacheSemaphoreEx) ((GridCacheSemaphoreEx)ds).stop(); if (ds instanceof GridCacheLockEx) ((GridCacheLockEx)ds).onStop(); } CountDownLatch init0 = initLatch; if (init0 != null && init0.getCount() > 0) { initFailed = true; init0.countDown(); initLatch = null; } Iterator<Map.Entry<Integer, UUID>> iter = qryIdMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry<Integer, UUID> e = iter.next(); iter.remove(); GridCacheContext cctx = ctx.cache().context().cacheContext(e.getKey()); cctx.continuousQueries().cancelInternalQuery(e.getValue()); } }
/** {@inheritDoc} */ @Override protected void onKernalStop0(boolean cancel) { busyLock.block(); if (queueQryId != null) cctx.continuousQueries().cancelInternalQuery(queueQryId); for (GridCacheQueueProxy q : queuesMap.values()) q.delegate().onKernalStop(); }