/** * @param cctx Cache context. * @throws IgniteCheckedException If failed. */ private void startQuery(GridCacheContext cctx) throws IgniteCheckedException { if (!qryIdMap.containsKey(cctx.cacheId())) { synchronized (this) { if (!qryIdMap.containsKey(cctx.cacheId())) { qryIdMap.put(cctx.cacheId(), cctx.continuousQueries().executeInternalQuery( new DataStructuresEntryListener(), new DataStructuresEntryFilter(), cctx.isReplicated() && cctx.affinityNode(), false, false, true )); } } } }
super.onKernalStart(); jobMetaCache().context().continuousQueries().executeInternalQuery( new CacheEntryUpdatedListener<HadoopJobId, HadoopJobMetadata>() { @Override public void onUpdated(final Iterable<CacheEntryEvent<? extends HadoopJobId,
queueQryId = cctx.continuousQueries().executeInternalQuery( new CacheEntryUpdatedListener<Object, Object>() { @Override public void onUpdated(Iterable<CacheEntryEvent<?, ?>> evts) {
serviceCache.context().continuousQueries().executeInternalQuery( new ServiceEntriesListener(), null, isLocLsnr, true, false, false );
.executeInternalQuery(lsnr, new SerializableFilter(), false, true, true, false);
/** * @param cctx Cache context. * @throws IgniteCheckedException If failed. */ private void startQuery(GridCacheContext cctx) throws IgniteCheckedException { if (!qryIdMap.containsKey(cctx.cacheId())) { synchronized (this) { if (!qryIdMap.containsKey(cctx.cacheId())) { qryIdMap.put(cctx.cacheId(), cctx.continuousQueries().executeInternalQuery( new DataStructuresEntryListener(), new DataStructuresEntryFilter(), cctx.isReplicated() && cctx.affinityNode(), false, false, true )); } } } }
queueQryId = cctx.continuousQueries().executeInternalQuery( new CacheEntryUpdatedListener<Object, Object>() { @Override public void onUpdated(Iterable<CacheEntryEvent<?, ?>> evts) {
serviceCache.context().continuousQueries().executeInternalQuery( new ServiceEntriesListener(), null, isLocLsnr, true, false, false );