public interface IgniteCacheObjectProcessor extends GridProcessor
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Method and Description |
|---|---|
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 |
isPortableEnabled(CacheConfiguration<?,?> ccfg)
Checks whether given class is portable.
|
boolean |
isPortableObject(Object obj)
Checks whether object is portable object.
|
byte[] |
marshal(CacheObjectContext ctx,
Object val) |
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,
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 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 isPortableObject(Object obj)
obj - Object to check.True if object is already a portable object, false otherwise.boolean isPortableEnabled(CacheConfiguration<?,?> ccfg)
true If portable objects are enabled.Object field(Object obj, String fieldName)
obj - Portable 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, Object obj, boolean userObj)
ctx - Cache context.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.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015