public class IgniteCacheObjectProcessorImpl extends GridProcessorAdapter implements IgniteCacheObjectProcessor
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
IgniteCacheObjectProcessorImpl(GridKernalContext ctx) |
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, toString, validateNode, validateNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcollectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, validateNode, validateNodepublic IgniteCacheObjectProcessorImpl(GridKernalContext ctx)
ctx - Context.public IgniteBinary binary()
binary in interface IgniteCacheObjectProcessor@Nullable public CacheObject prepareForCache(@Nullable CacheObject obj, GridCacheContext cctx)
prepareForCache in interface IgniteCacheObjectProcessorobj - Cache object.cctx - Cache context.public byte[] marshal(CacheObjectValueContext ctx, Object val) throws IgniteCheckedException
marshal in interface IgniteCacheObjectProcessorctx - Cache object context.val - Value.IgniteCheckedException - If failed.public Object unmarshal(CacheObjectValueContext ctx, byte[] bytes, ClassLoader clsLdr) throws IgniteCheckedException
unmarshal in interface IgniteCacheObjectProcessorctx - Context.bytes - Bytes.clsLdr - Class loader.IgniteCheckedException - If failed.public KeyCacheObject toCacheKeyObject(CacheObjectContext ctx, @Nullable GridCacheContext cctx, Object obj, boolean userObj)
toCacheKeyObject in interface IgniteCacheObjectProcessorctx - Cache objects context.cctx - Cache context if cache is available.obj - Key value.userObj - If true then given object is object provided by user and should be copied
before stored in cache.protected KeyCacheObject toCacheKeyObject0(CacheObjectContext ctx, @Nullable GridCacheContext cctx, Object obj, boolean userObj)
obj - Object.userObj - If true then given object is object provided by user and should be copied
before stored in cache.public CacheObject toCacheObject(CacheObjectContext ctx, byte type, byte[] bytes)
toCacheObject in interface IgniteCacheObjectProcessorctx - Cache context.type - Object type.bytes - Object bytes.public KeyCacheObject toKeyCacheObject(CacheObjectContext ctx, byte type, byte[] bytes) throws IgniteCheckedException
toKeyCacheObject in interface IgniteCacheObjectProcessorctx - Cache context.type - Object type.bytes - Object bytes.IgniteCheckedExceptionpublic CacheObject toCacheObject(CacheObjectContext ctx, ByteBuffer buf)
toCacheObject in interface IgniteCacheObjectProcessorctx - Cache context.buf - Buffer to read from.public IncompleteCacheObject toCacheObject(CacheObjectContext ctx, ByteBuffer buf, @Nullable IncompleteCacheObject incompleteObj) throws IgniteCheckedException
toCacheObject in interface IgniteCacheObjectProcessorctx - Cache object context.buf - Buffer.incompleteObj - Incomplete cache object or null if it's a first read.IgniteCheckedException - If fail.public IncompleteCacheObject toKeyCacheObject(CacheObjectContext ctx, ByteBuffer buf, @Nullable IncompleteCacheObject incompleteObj) throws IgniteCheckedException
toKeyCacheObject in interface IgniteCacheObjectProcessorctx - Cache object context.buf - Buffer.incompleteObj - Incomplete cache object or null if it's a first read.IgniteCheckedException - If fail.@Nullable public CacheObject toCacheObject(CacheObjectContext ctx, @Nullable Object obj, boolean userObj)
toCacheObject in interface IgniteCacheObjectProcessorctx - Cache context.obj - Object.userObj - If true then given object is object provided by user and should be copied
before stored in cache.protected CacheObject toCacheObject0(@Nullable Object obj, boolean userObj)
obj - Object.userObj - If true then given object is object provided by user and should be copied
before stored in cache.protected final int partition(CacheObjectContext ctx, @Nullable GridCacheContext cctx, Object obj)
ctx - Cache objects context.cctx - Cache context.obj - Object.public CacheObjectContext contextForCache(CacheConfiguration ccfg) throws IgniteCheckedException
contextForCache in interface IgniteCacheObjectProcessorccfg - Cache configuration.IgniteCheckedException - If failed.public boolean immutable(Object obj)
immutable in interface IgniteCacheObjectProcessorobj - Value.True if object is of known immutable type.public void onContinuousProcessorStarted(GridKernalContext ctx) throws IgniteCheckedException
onContinuousProcessorStarted in interface IgniteCacheObjectProcessorctx - Context.IgniteCheckedException - If failed.public int typeId(String typeName)
typeId in interface IgniteCacheObjectProcessortypeName - Type name.public Object unwrapTemporary(GridCacheContext ctx, Object obj) throws IgniteException
unwrapTemporary in interface IgniteCacheObjectProcessorctx - Context.obj - Object.IgniteException - In case of error.public boolean isBinaryObject(Object obj)
isBinaryObject in interface IgniteCacheObjectProcessorobj - Object to check.True if object is already a binary object, false otherwise.public boolean isBinaryEnabled(CacheConfiguration<?,?> ccfg)
isBinaryEnabled in interface IgniteCacheObjectProcessortrue If binary objects are enabled.public int typeId(Object obj)
typeId in interface IgniteCacheObjectProcessorobj - Object to get type ID for.public Object field(Object obj, String fieldName)
field in interface IgniteCacheObjectProcessorobj - Binary object to get field from.fieldName - Field name.public boolean hasField(Object obj, String fieldName)
hasField in interface IgniteCacheObjectProcessorobj - Object.fieldName - Field name.true if field is set.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018