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 |
isPortableClass(Class<?> cls)
Checks whether given class is portable.
|
boolean |
isPortableObject(Object obj)
Checks whether object is portable object.
|
byte[] |
marshal(CacheObjectContext ctx,
Object val) |
void |
onCacheProcessorStarted() |
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, onDiscoveryDataReceived, onKernalStart, onKernalStop, printMemoryStats, start, stop, toString, validateNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcollectDiscoveryData, discoveryDataType, onDiscoveryDataReceived, onKernalStart, onKernalStop, 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)
contextForCache in interface IgniteCacheObjectProcessorpublic boolean immutable(Object obj)
immutable in interface IgniteCacheObjectProcessorobj - Value.True if object is of known immutable type.public void onCacheProcessorStarted()
onCacheProcessorStarted in interface IgniteCacheObjectProcessorGridComponent.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 isPortableClass(Class<?> cls)
isPortableClass in interface IgniteCacheObjectProcessorcls - Class.true If the class was registered as portable.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.1.0-incubating Release Date : May 20 2015