public interface IgniteCacheObjectProcessor extends GridProcessor
GridComponent.DiscoveryDataExchangeType
collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, validateNode
void onContinuousProcessorStarted(GridKernalContext ctx) throws IgniteCheckedException
ctx
- Context.IgniteCheckedException
- If failed.void onUtilityCacheStarted() throws IgniteCheckedException
IgniteCheckedException
- If failed.GridComponent.onKernalStart(boolean)
int typeId(String typeName)
typeName
- Type name.int typeId(Object obj)
obj
- Object to get type ID for.@Nullable Object unwrapTemporary(GridCacheContext ctx, @Nullable Object obj) throws IgniteException
ctx
- Context.obj
- Object.IgniteException
- In case of error.@Nullable CacheObject prepareForCache(@Nullable CacheObject obj, GridCacheContext cctx)
obj
- Cache object.cctx
- Cache context.boolean isBinaryObject(Object obj)
obj
- Object to check.True
if object is already a binary object, false
otherwise.boolean isBinaryEnabled(CacheConfiguration<?,?> ccfg)
true
If binary objects are enabled.Object field(Object obj, String fieldName)
obj
- Binary object to get field from.fieldName
- Field name.boolean hasField(Object obj, String fieldName)
obj
- Object.fieldName
- Field name.true
if field is set.byte[] marshal(CacheObjectContext ctx, Object val) throws IgniteCheckedException
ctx
- Cache object context.val
- Value.IgniteCheckedException
- If failed.Object unmarshal(CacheObjectContext ctx, byte[] bytes, ClassLoader clsLdr) throws IgniteCheckedException
ctx
- Context.bytes
- Bytes.clsLdr
- Class loader.IgniteCheckedException
- If failed.CacheObjectContext contextForCache(CacheConfiguration ccfg) throws IgniteCheckedException
ccfg
- Cache configuration.IgniteCheckedException
- If failed.KeyCacheObject toCacheKeyObject(CacheObjectContext ctx, @Nullable GridCacheContext cctx, Object obj, boolean userObj)
ctx
- 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.@Nullable CacheObject toCacheObject(CacheObjectContext ctx, @Nullable Object obj, boolean userObj)
ctx
- Cache context.obj
- Object.userObj
- If true
then given object is object provided by user and should be copied
before stored in cache.CacheObject toCacheObject(CacheObjectContext ctx, byte type, byte[] bytes)
ctx
- Cache context.type
- Object type.bytes
- Object bytes.KeyCacheObject toKeyCacheObject(CacheObjectContext ctx, byte type, byte[] bytes) throws IgniteCheckedException
ctx
- Cache context.type
- Object type.bytes
- Object bytes.IgniteCheckedException
CacheObject toCacheObject(CacheObjectContext ctx, ByteBuffer buf)
ctx
- Cache context.buf
- Buffer to read from.IncompleteCacheObject toCacheObject(CacheObjectContext ctx, ByteBuffer buf, @Nullable IncompleteCacheObject incompleteObj) throws IgniteCheckedException
ctx
- Cache object context.buf
- Buffer.incompleteObj
- Incomplete cache object or null
if it's a first read.IgniteCheckedException
- If fail.IncompleteCacheObject toKeyCacheObject(CacheObjectContext ctx, ByteBuffer buf, @Nullable IncompleteCacheObject incompleteObj) throws IgniteCheckedException
ctx
- Cache object context.buf
- Buffer.incompleteObj
- Incomplete cache object or null
if it's a first read.IgniteCheckedException
- If fail.boolean immutable(Object obj)
obj
- Value.True
if object is of known immutable type.IgniteBinary binary()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017