public class IgniteCacheObjectProcessorImpl extends GridProcessorAdapter implements IgniteCacheObjectProcessor
GridComponent.DiscoveryDataExchangeTypectx, log| Constructor and Description |
|---|
IgniteCacheObjectProcessorImpl(GridKernalContext ctx) |
| 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) |
protected KeyCacheObject |
toCacheKeyObject0(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) |
protected CacheObject |
toCacheObject0(Object obj,
boolean userObj) |
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.
|
assertParameter, collectDiscoveryData, discoveryDataType, onDisconnected, onDiscoveryDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, toString, validateNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcollectDiscoveryData, discoveryDataType, onDisconnected, onDiscoveryDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, validateNodepublic IgniteCacheObjectProcessorImpl(GridKernalContext ctx)
ctx - Context.@Nullable public CacheObject prepareForCache(@Nullable CacheObject obj, GridCacheContext cctx)
prepareForCache in interface IgniteCacheObjectProcessorobj - Cache object.cctx - Cache context.public byte[] marshal(CacheObjectContext ctx, Object val) throws IgniteCheckedException
marshal in interface IgniteCacheObjectProcessorctx - Cache object context.val - Value.IgniteCheckedException - If failed.public Object unmarshal(CacheObjectContext ctx, byte[] bytes, ClassLoader clsLdr) throws IgniteCheckedException
unmarshal in interface IgniteCacheObjectProcessorctx - Context.bytes - Bytes.clsLdr - Class loader.IgniteCheckedException - If failed.@Nullable public KeyCacheObject toCacheKeyObject(CacheObjectContext ctx, Object obj, boolean userObj)
toCacheKeyObject in interface IgniteCacheObjectProcessorctx - Cache context.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(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(GridCacheContext ctx, long valPtr, boolean tmp) throws IgniteCheckedException
toCacheObject in interface IgniteCacheObjectProcessorctx - Context.valPtr - Value pointer.tmp - If true can return temporary instance which is valid while entry lock is held.IgniteCheckedException - If failed.public CacheObject toCacheObject(CacheObjectContext ctx, byte type, byte[] bytes)
toCacheObject in interface IgniteCacheObjectProcessorctx - Cache context.type - Object type.bytes - Object bytes.@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.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 onUtilityCacheStarted()
throws IgniteCheckedException
onUtilityCacheStarted in interface IgniteCacheObjectProcessorIgniteCheckedException - If failed.GridComponent.onKernalStart()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 isPortableObject(Object obj)
isPortableObject in interface IgniteCacheObjectProcessorobj - Object to check.True if object is already a portable object, false otherwise.public boolean isPortableEnabled(CacheConfiguration<?,?> ccfg)
isPortableEnabled in interface IgniteCacheObjectProcessortrue If portable 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 - Portable 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. 1.4.0 Release Date : September 24 2015