/** * @return The marshaller context. */ public BinaryContext context() { return impl.context(); }
/** {@inheritDoc} */ @Override public void onUndeploy(ClassLoader ldr) { impl.context().onUndeploy(ldr); }
/** * Get binary context for the current marshaller. * * @param marsh Marshaller. * @return Binary context. */ protected static BinaryContext binaryContext(BinaryMarshaller marsh) { GridBinaryMarshaller impl = U.field(marsh, "impl"); return impl.context(); }
/** {@inheritDoc} */ @Override public BinaryRawReaderEx reader(PlatformInputStream in) { return new BinaryReaderExImpl(marsh.context(), in, ctx.config().getClassLoader(), null, true, true); }
/** * Configure marshaller with custom Ignite Binary Object configuration. */ public void setBinaryConfiguration(BinaryConfiguration binCfg) { if (impl.context().configuration().getBinaryConfiguration() != binCfg) impl = createImpl(binCfg); }
/** * Get binary context for the current marshaller. * * @param marsh Marshaller. * @return Binary context. */ protected static BinaryContext binaryContext(BinaryMarshaller marsh) { GridBinaryMarshaller impl = U.field(marsh, "impl"); return impl.context(); }
/** * @param marsh Marshaller. * @return Binary context. */ protected BinaryContext binaryContext(BinaryMarshaller marsh) { GridBinaryMarshaller impl = U.field(marsh, "impl"); return impl.context(); }
/** {@inheritDoc} */ @Override public ClientListenerRequest decode(byte[] msg) { assert msg != null; BinaryInputStream inStream = new BinaryHeapInputStream(msg); // skipHdrCheck must be true (we have 103 op code). BinaryRawReaderEx reader = new BinaryReaderExImpl(marsh.context(), inStream, null, null, true, true); return decode(reader); }
/** * @param marsh Marshaller. * @return Binary context. */ protected BinaryContext binaryContext(BinaryMarshaller marsh) { GridBinaryMarshaller impl = U.field(marsh, "impl"); return impl.context(); }
/** * @return Binary context. * @throws IgniteCheckedException if failed. */ private BinaryContext binaryContext() throws IgniteCheckedException { GridBinaryMarshaller impl = U.field(binaryMarshaller(), "impl"); return impl.context(); }
/** * @param obj Object. * @param marsh Marshaller. * @return Binary object. */ private <T> BinaryObjectImpl marshal(T obj, BinaryMarshaller marsh) throws IgniteCheckedException { byte[] bytes = marsh.marshal(obj); return new BinaryObjectImpl(U.<GridBinaryMarshaller>field(marsh, "impl").context(), bytes, 0); }
BinaryWriterExImpl writer = new BinaryWriterExImpl(marsh.context(), new BinaryHeapOutputStream(INIT_CAP), BinaryThreadLocalContext.get().schemaHolder(), null);
BinaryReaderExImpl reader = new BinaryReaderExImpl(marsh.context(), stream, ctx.config().getClassLoader(), true);
/** * @return The marshaller context. */ public BinaryContext context() { return impl.context(); }
/** {@inheritDoc} */ @Override public void onUndeploy(ClassLoader ldr) { impl.context().onUndeploy(ldr); }
/** {@inheritDoc} */ @Override public BinaryRawReaderEx reader(PlatformInputStream in) { return new BinaryReaderExImpl(marsh.context(), in, ctx.config().getClassLoader(), null, true, true); }
/** * Configure marshaller with custom Ignite Binary Object configuration. */ public void setBinaryConfiguration(BinaryConfiguration binCfg) { if (impl.context().configuration().getBinaryConfiguration() != binCfg) impl = createImpl(binCfg); }
/** {@inheritDoc} */ @Override public ClientListenerRequest decode(byte[] msg) { assert msg != null; BinaryInputStream inStream = new BinaryHeapInputStream(msg); // skipHdrCheck must be true (we have 103 op code). BinaryRawReaderEx reader = new BinaryReaderExImpl(marsh.context(), inStream, null, null, true, true); return decode(reader); }
BinaryWriterExImpl writer = new BinaryWriterExImpl(marsh.context(), new BinaryHeapOutputStream(INIT_CAP), BinaryThreadLocalContext.get().schemaHolder(), null);
BinaryReaderExImpl reader = new BinaryReaderExImpl(marsh.context(), stream, ctx.config().getClassLoader(), true);