/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); if (params != null && paramsBytes == null) paramsBytes = U.marshal(ctx, params); }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); if (errs != null) errs.prepareMarshal(this, ctx.cacheContext(cacheId)); }
/** * @param ctx Cache context. * @throws IgniteCheckedException If failed. */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); assert ctx != null; assert !F.isEmpty(keys); assert readersFlags == null || keys.size() == readersFlags.size(); GridCacheContext cctx = ctx.cacheContext(cacheId); prepareMarshalCacheObjects(keys, cctx); }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); assert key != null; GridCacheContext cctx = ctx.cacheContext(cacheId); prepareMarshalCacheObject(key, cctx); }
/** {@inheritDoc} * @param ctx*/ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); GridCacheContext cctx = ctx.cacheContext(cacheId); prepareMarshalCacheObjects(keys, cctx); }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); if (err != null && errBytes == null) errBytes = U.marshal(ctx.marshaller(), err); }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); if (err != null && errBytes == null) errBytes = U.marshal(ctx.marshaller(), err); }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); GridCacheContext cctx = ctx.cacheContext(cacheId); // Can be null if client near cache was removed, in this case assume do not need prepareMarshal. if (cctx != null) { prepareMarshalCacheObjects(nearEvicted, cctx); if (errs != null) errs.prepareMarshal(this, cctx); } }
/** {@inheritDoc} * @param ctx*/ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); GridCacheContext cctx = ctx.cacheContext(cacheId); if (entries != null) { for (GridCacheEntryInfo info : entries) info.marshal(cctx); } if (err != null && errBytes == null) errBytes = U.marshal(ctx, err); }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); GridCacheContext cctx = ctx.cacheContext(cacheId); prepareMarshalCacheObjects(keys, cctx); prepareMarshalCacheObjects(nearKeys, cctx); }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); GridCacheContext cctx = ctx.cacheContext(cacheId); if (err != null && errBytes == null) errBytes = U.marshal(ctx.marshaller(), err); if (res != null) res.prepareMarshal(cctx); }
/** {@inheritDoc} * @param ctx*/ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); GridCacheContext cctx = ctx.cacheContext(cacheId); if (errs != null) errs.prepareMarshal(this, cctx); if (nearUpdates != null) prepareMarshalCacheObjects(nearUpdates.nearValues(), cctx); if (ret != null) ret.prepareMarshal(cctx); }
/** {@inheritDoc} * @param ctx*/ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); GridCacheContext cctx = ctx.cacheContext(cacheId); if (err != null && errBytes == null) errBytes = U.marshal(ctx, err); if (metaDataBytes == null && metadata != null) metaDataBytes = marshalCollection(metadata, cctx); if (dataBytes == null && data != null) dataBytes = marshalCollection(data, cctx); if (addDepInfo && !F.isEmpty(data)) { for (Object o : data) { if (o instanceof Map.Entry) { Map.Entry e = (Map.Entry)o; prepareObject(e.getKey(), cctx); prepareObject(e.getValue(), cctx); } } } }
/** {@inheritDoc} * @param ctx*/ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); GridCacheContext cctx = ctx.cacheContext(cacheId); if (missedKeys != null) prepareMarshalCacheObjects(missedKeys, cctx); if (infos != null) { for (GridCacheEntryInfo info : infos) info.marshal(cctx.cacheObjectContext()); } if (err != null && errBytes == null) errBytes = U.marshal(ctx, err); }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); GridCacheContext cctx = ctx.cacheContext(cacheId); CacheObjectContext objCtx = cctx.cacheObjectContext(); if (!addDepInfo && cctx.deploymentEnabled()) addDepInfo = true; if (keys != null) { for (int i = 0; i < keys.size(); i++) { keys.get(i).prepareMarshal(objCtx); if (vals != null) { Message val = vals.get(i); if (val instanceof CacheObject) ((CacheObject)val).prepareMarshal(objCtx); else if (val instanceof CacheEntryInfoCollection) { for (GridCacheEntryInfo entry : ((CacheEntryInfoCollection)val).infos()) { CacheObject entryVal = entry.value(); if (entryVal != null) entryVal.prepareMarshal(objCtx); } } else if (val instanceof GridInvokeValue) prepareInvokeValue(cctx, (GridInvokeValue)val); } } } }
/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); if (res != null) { GridCacheContext cctx = ctx.cacheContext(cacheId); if (res instanceof CacheObject) prepareMarshalCacheObject((CacheObject) res, cctx); else if (res instanceof CacheVersionedValue) ((CacheVersionedValue)res).prepareMarshal(cctx.cacheObjectContext()); else if (res instanceof GridCacheEntryInfo) ((GridCacheEntryInfo)res).marshal(cctx); } if (err != null && errBytes == null) errBytes = U.marshal(ctx, err); }
super.prepareMarshal(ctx);
/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); GridCacheContext cctx = ctx.cacheContext(cacheId); if (keyValFilter != null && keyValFilterBytes == null) { if (addDepInfo) prepareObject(keyValFilter, cctx); keyValFilterBytes = CU.marshal(cctx, keyValFilter); } if (rdc != null && rdcBytes == null) { if (addDepInfo) prepareObject(rdc, cctx); rdcBytes = CU.marshal(cctx, rdc); } if (trans != null && transBytes == null) { if (addDepInfo) prepareObject(trans, cctx); transBytes = CU.marshal(cctx, trans); } if (!F.isEmpty(args) && argsBytes == null) { if (addDepInfo) { for (Object arg : args) prepareObject(arg, cctx); } argsBytes = CU.marshal(cctx, args); } }
super.prepareMarshal(ctx);
/** {@inheritDoc} */ @Override public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException { super.prepareMarshal(ctx); if (errs != null) errs.prepareMarshal(this, ctx.cacheContext(cacheId)); }