public interface IgniteCacheObjectProcessor extends GridProcessor
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Method and Description |
|---|---|
String |
affinityField(String keyType) |
IgniteBinary |
binary() |
CacheObjectContext |
contextForCache(CacheConfiguration ccfg) |
Object |
field(Object obj,
String fieldName) |
boolean |
hasField(Object obj,
String fieldName)
Checks whether field is set in the object.
|
boolean |
immutable(Object obj) |
boolean |
isBinaryEnabled(CacheConfiguration<?,?> ccfg)
Checks whether given class is binary.
|
boolean |
isBinaryObject(Object obj)
Checks whether object is binary object.
|
byte[] |
marshal(CacheObjectContext ctx,
Object val) |
void |
onContinuousProcessorStarted(GridKernalContext ctx) |
void |
onUtilityCacheStarted() |
CacheObject |
prepareForCache(CacheObject obj,
GridCacheContext cctx)
Prepares cache object for cache (e.g. copies user-provided object if needed).
|
KeyCacheObject |
toCacheKeyObject(CacheObjectContext ctx,
GridCacheContext cctx,
Object obj,
boolean userObj) |
CacheObject |
toCacheObject(CacheObjectContext ctx,
byte type,
byte[] bytes) |
CacheObject |
toCacheObject(CacheObjectContext ctx,
Object obj,
boolean userObj) |
CacheObject |
toCacheObject(GridCacheContext ctx,
long valPtr,
boolean tmp) |
int |
typeId(Object obj) |
int |
typeId(String typeName) |
Object |
unmarshal(CacheObjectContext ctx,
byte[] bytes,
ClassLoader clsLdr) |
Object |
unwrapTemporary(GridCacheContext ctx,
Object obj)
Converts temporary off-heap object to heap-based.
|
collectDiscoveryData, discoveryDataType, onDisconnected, onDiscoveryDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, validateNodevoid onContinuousProcessorStarted(GridKernalContext ctx) throws IgniteCheckedException
ctx - Context.IgniteCheckedException - If failed.void onUtilityCacheStarted()
throws IgniteCheckedException
IgniteCheckedException - If failed.GridComponent.onKernalStart()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.CacheObject toCacheObject(GridCacheContext ctx, long valPtr, boolean tmp) throws IgniteCheckedException
ctx - Context.valPtr - Value pointer.tmp - If true can return temporary instance which is valid while entry lock is held.IgniteCheckedException - If failed.boolean immutable(Object obj)
obj - Value.True if object is of known immutable type.IgniteBinary binary()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016