/** {@inheritDoc} */ @Override public <K, V> GridCache<K, V> cache(String name) { assert g != null; return g.cache(name); }
GridCache<Object, Object> cache0 = first.cache(cache.name());
/** * @param grid Grid instance. * @param cacheName Name of the cache. * @return Instance on the named cache. * @throws GridException If cache not found. */ private static GridCacheProjectionEx<Object, Object> cache(Grid grid, String cacheName) throws GridException { GridCache<Object, Object> cache = grid.cache(cacheName); if (cache == null) throw new GridException( "Failed to find cache for given cache name (null for default cache): " + cacheName); return (GridCacheProjectionEx<Object, Object>)cache; }
private GridCacheProjection<Long, IndexSessionExecution> getCache() { GridCache<?, ?> goGridCache = cacheSingleton.getGrid().cache("local_tx_indexsessionexecution"); GridCacheProjection<Long, IndexSessionExecution> ruleExecutionCache = goGridCache.projection(Long.class, IndexSessionExecution.class); return ruleExecutionCache; } }
private GridCacheProjection<Long, IndexRuleFlowGroup> getCache() { GridCache<?, ?> goGridCache = cacheSingleton.getGrid().cache("local_tx_indexruleflowgroup"); GridCacheProjection<Long, IndexRuleFlowGroup> ruleExecutionCache = goGridCache.projection(Long.class, IndexRuleFlowGroup.class); return ruleExecutionCache; } }
private GridCacheProjection<Long, IndexRuleAsset> getCache() { GridCache<?, ?> goGridCache = cacheSingleton.getGrid().cache("local_tx_indexruleasset"); GridCacheProjection<Long, IndexRuleAsset> ruleAssetCache = goGridCache.projection(Long.class, IndexRuleAsset.class); return ruleAssetCache; } }
private GridCacheProjection<Long, IndexRuleExecution> getCache() { GridCache<?, ?> goGridCache = cacheSingleton.getGrid().cache("local_tx_indexruleexecution"); GridCacheProjection<Long, IndexRuleExecution> ruleExecutionCache = goGridCache.projection(Long.class, IndexRuleExecution.class); return ruleExecutionCache; } }
/** * Reconstructs object on unmarshalling. * * @return Reconstructed object. * @throws ObjectStreamException Thrown in case of unmarshalling error. */ private Object readResolve() throws ObjectStreamException { return cctx.grid().cache(cctx.cache().name()).dataStructures(); } }
/** * Reconstructs object on unmarshalling. * * @return Reconstructed object. * @throws ObjectStreamException Thrown in case of unmarshalling error. */ private Object readResolve() throws ObjectStreamException { return cctx.grid().cache(cctx.cache().name()).affinity(); } }
long qryId = qryIdGen.getAndIncrement(); GridCacheQueries<Object,Object> queries = g.cache(req.cacheName()).queries();