/** * */ public void unwindUndeploys() { List<GridCacheContext> caches = this.caches; for (GridCacheContext cctx : caches) cctx.deploy().unwind(cctx); }
/** * Enter a cache call. */ public void enter() { if (ctx.deploymentEnabled()) ctx.deploy().onEnter(); rwLock.readLock().lock(); checkState(true, true); }
/** * Undeploys and removes all entries for class loader. * * @param ldr Class loader to undeploy. */ public final void onUndeploy(ClassLoader ldr) { ctx.deploy().onUndeploy(ldr, context()); }
/** * @param opCtx Cache operation context. */ private void onEnter(CacheOperationContext opCtx) { ctx.itHolder().checkWeakQueue(); if (ctx.deploymentEnabled()) ctx.deploy().onEnter(); if (opCtx != null) checkAtomicOpsInTx(opCtx); }
/** * @param bytes Bytes. * @return Cache key object. * @throws IgniteCheckedException If failed. */ public KeyCacheObject toCacheKeyObject(byte[] bytes) throws IgniteCheckedException { Object obj = ctx.cacheObjects().unmarshal(cacheObjCtx, bytes, deploy().localLoader()); return cacheObjects().toCacheKeyObject(cacheObjCtx, this, obj, false); }
/** * @param cctx Context. * @param nodeId ID of the node that started routine. * @param entry Entry. * @throws IgniteCheckedException In case of error. */ private void prepareEntry(GridCacheContext cctx, UUID nodeId, CacheContinuousQueryEntry entry) throws IgniteCheckedException { if (cctx.kernalContext().config().isPeerClassLoadingEnabled() && cctx.discovery().node(nodeId) != null) { entry.prepareMarshal(cctx); cctx.deploy().prepare(entry); } else entry.prepareMarshal(cctx); }
cctx.deploy().registerClasses(filter);
/** * Finds next element. * * @throws IgniteCheckedException If failed. */ @SuppressWarnings("unchecked") private void findNext() throws IgniteCheckedException { curr = null; while (idx < docs.length) { Document doc; try { doc = searcher.doc(docs[idx++].doc); } catch (IOException e) { throw new IgniteCheckedException(e); } ClassLoader ldr = null; if (ctx != null && ctx.deploy().enabled()) ldr = ctx.cache().internalCache(cacheName).context().deploy().globalLoader(); K k = unmarshall(doc.getBinaryValue(KEY_FIELD_NAME).bytes, ldr); if (filters != null && !filters.apply(k)) continue; V v = type.valueClass() == String.class ? (V)doc.get(VAL_STR_FIELD_NAME) : this.<V>unmarshall(doc.getBinaryValue(VAL_FIELD_NAME).bytes, ldr); assert v != null; curr = new IgniteBiTuple<>(k, v); break; } }
GridCacheDeploymentManager depMgr = cctx.deploy();
cache.context().deploy().ignoreOwnership(true); e.getKey().finishUnmarshal(cctx.cacheObjectContext(), cctx.deploy().globalLoader()); checkSecurityPermission(SecurityPermission.CACHE_PUT); val.finishUnmarshal(cctx.cacheObjectContext(), cctx.deploy().globalLoader()); cache.context().deploy().ignoreOwnership(false);
e.getKey().finishUnmarshal(cctx.cacheObjectContext(), cctx.deploy().globalLoader());
GridCacheDeploymentManager depMgr = cache.context().deploy();
info.unmarshalValue(cctx, cctx.deploy().globalLoader());
oldVal.finishUnmarshal(cctx.cacheObjectContext(), cctx.deploy().globalLoader());
ClassLoader ldr = ctx.deploy().globalLoader();
/** * */ public void unwindUndeploys() { List<GridCacheContext> caches = this.caches; for (int i = 0; i < caches.size(); i++) { GridCacheContext cctx = caches.get(i); cctx.deploy().unwind(cctx); } }
/** * Undeploys and removes all entries for class loader. * * @param ldr Class loader to undeploy. */ public final void onUndeploy(ClassLoader ldr) { ctx.deploy().onUndeploy(ldr, context()); }
/** * @param bytes Bytes. * @return Cache key object. * @throws IgniteCheckedException If failed. */ public KeyCacheObject toCacheKeyObject(byte[] bytes) throws IgniteCheckedException { Object obj = ctx.cacheObjects().unmarshal(cacheObjCtx, bytes, deploy().localLoader()); return cacheObjects().toCacheKeyObject(cacheObjCtx, this, obj, false); }